Class v1.FeaturestoreServiceClient (6.4.0)

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

Package

@google-cloud/aiplatform

Constructors

(constructor)(opts, gaxInstance)

constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);

Construct an instance of FeaturestoreServiceClient.

Parameters
Name Description
opts ClientOptions
gaxInstance typeof gax | typeof fallback

: loaded instance of google-gax. Useful if you need to avoid loading the default gRPC version and want to use the fallback HTTP implementation. Load only fallback version and pass it to the constructor: ``` const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC const client = new FeaturestoreServiceClient({fallback: true}, gax); ```

Properties

apiEndpoint

get apiEndpoint(): string;

The DNS address for this API service.

apiEndpoint

static get apiEndpoint(): string;

The DNS address for this API service - same as servicePath.

auth

auth: gax.GoogleAuth;

descriptors

descriptors: Descriptors;

featurestoreServiceStub

featurestoreServiceStub?: Promise<{
        [name: string]: Function;
    }>;

iamClient

iamClient: IamClient;

innerApiCalls

innerApiCalls: {
        [name: string]: Function;
    };

locationsClient

locationsClient: LocationsClient;

operationsClient

operationsClient: gax.OperationsClient;

pathTemplates

pathTemplates: {
        [name: string]: gax.PathTemplate;
    };

port

static get port(): number;

The port for this API service.

scopes

static get scopes(): string[];

The scopes needed to make gRPC calls for every method defined in this service.

servicePath

static get servicePath(): string;

The DNS address for this API service.

universeDomain

get universeDomain(): string;

warn

warn: (code: string, message: string, warnType?: string) => void;

Methods

annotationPath(project, location, dataset, dataItem, annotation)

annotationPath(project: string, location: string, dataset: string, dataItem: string, annotation: string): string;

Return a fully-qualified annotation resource name string.

Parameters
Name Description
project string
location string
dataset string
dataItem string
annotation string
Returns
Type Description
string

{string} Resource name string.

annotationSpecPath(project, location, dataset, annotationSpec)

annotationSpecPath(project: string, location: string, dataset: string, annotationSpec: string): string;

Return a fully-qualified annotationSpec resource name string.

Parameters
Name Description
project string
location string
dataset string
annotationSpec string
Returns
Type Description
string

{string} Resource name string.

artifactPath(project, location, metadataStore, artifact)

artifactPath(project: string, location: string, metadataStore: string, artifact: string): string;

Return a fully-qualified artifact resource name string.

Parameters
Name Description
project string
location string
metadataStore string
artifact string
Returns
Type Description
string

{string} Resource name string.

batchCreateFeatures(request, options)

batchCreateFeatures(request?: protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Creates a batch of Features in a given EntityType.

Parameters
Name Description
request IBatchCreateFeaturesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The resource name of the EntityType/FeatureGroup to create the
   *  batch of Features under. Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
   *  `projects/{project}/locations/{location}/featureGroups/{feature_group}`
   */
  // const parent = 'abc123'
  /**
   *  Required. The request message specifying the Features to create. All
   *  Features must be created under the same parent EntityType / FeatureGroup.
   *  The `parent` field in each child request message can be omitted. If
   *  `parent` is set in a child request, then the value must match the `parent`
   *  value in this request message.
   */
  // const requests = [1,2,3,4]

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callBatchCreateFeatures() {
    // Construct request
    const request = {
      parent,
      requests,
    };

    // Run request
    const [operation] = await aiplatformClient.batchCreateFeatures(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callBatchCreateFeatures();

batchCreateFeatures(request, options, callback)

batchCreateFeatures(request: protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IBatchCreateFeaturesRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

batchCreateFeatures(request, callback)

batchCreateFeatures(request: protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest, callback: Callback<LROperation<protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IBatchCreateFeaturesRequest
callback Callback<LROperation<protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

batchPredictionJobPath(project, location, batchPredictionJob)

batchPredictionJobPath(project: string, location: string, batchPredictionJob: string): string;

Return a fully-qualified batchPredictionJob resource name string.

Parameters
Name Description
project string
location string
batchPredictionJob string
Returns
Type Description
string

{string} Resource name string.

batchReadFeatureValues(request, options)

batchReadFeatureValues(request?: protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

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.

Parameters
Name Description
request IBatchReadFeatureValuesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Each read instance consists of exactly one read timestamp and one or more
   *  entity IDs identifying entities of the corresponding EntityTypes whose
   *  Features are requested.
   *  Each output instance contains Feature values of requested entities
   *  concatenated together as of the read time.
   *  An example read instance may be `foo_entity_id, bar_entity_id,
   *  2020-01-01T10:00:00.123Z`.
   *  An example output instance may be `foo_entity_id, bar_entity_id,
   *  2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
   *  bar_entity_feature2_value`.
   *  Timestamp in each read instance must be millisecond-aligned.
   *  `csv_read_instances` are read instances stored in a plain-text CSV file.
   *  The header should be:
   *      ENTITY_TYPE_ID1, ENTITY_TYPE_ID2, ..., timestamp
   *  The columns can be in any order.
   *  Values in the timestamp column must use the RFC 3339 format, e.g.
   *  `2012-07-30T10:43:17.123Z`.
   */
  // const csvReadInstances = {}
  /**
   *  Similar to csv_read_instances, but from BigQuery source.
   */
  // const bigqueryReadInstances = {}
  /**
   *  Required. The resource name of the Featurestore from which to query Feature
   *  values. Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}`
   */
  // const featurestore = 'abc123'
  /**
   *  Required. Specifies output location and format.
   */
  // const destination = {}
  /**
   *  When not empty, the specified fields in the *_read_instances source will be
   *  joined as-is in the output, in addition to those fields from the
   *  Featurestore Entity.
   *  For BigQuery source, the type of the pass-through values will be
   *  automatically inferred. For CSV source, the pass-through values will be
   *  passed as opaque bytes.
   */
  // const passThroughFields = [1,2,3,4]
  /**
   *  Required. Specifies EntityType grouping Features to read values of and
   *  settings.
   */
  // const entityTypeSpecs = [1,2,3,4]
  /**
   *  Optional. Excludes Feature values with feature generation timestamp before
   *  this timestamp. If not set, retrieve oldest values kept in Feature Store.
   *  Timestamp, if present, must not have higher than millisecond precision.
   */
  // const startTime = {}

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callBatchReadFeatureValues() {
    // Construct request
    const request = {
      featurestore,
      destination,
      entityTypeSpecs,
    };

    // Run request
    const [operation] = await aiplatformClient.batchReadFeatureValues(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callBatchReadFeatureValues();

batchReadFeatureValues(request, options, callback)

batchReadFeatureValues(request: protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IBatchReadFeatureValuesRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

batchReadFeatureValues(request, callback)

batchReadFeatureValues(request: protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest, callback: Callback<LROperation<protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IBatchReadFeatureValuesRequest
callback Callback<LROperation<protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

cachedContentPath(project, location, cachedContent)

cachedContentPath(project: string, location: string, cachedContent: string): string;

Return a fully-qualified cachedContent resource name string.

Parameters
Name Description
project string
location string
cachedContent string
Returns
Type Description
string

{string} Resource name string.

cancelOperation(request, optionsOrCallback, callback)

cancelOperation(request: protos.google.longrunning.CancelOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>;

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an value with a of 1, corresponding to Code.CANCELLED.

Parameters
Name Description
request CancelOperationRequest

The request object that will be sent.

optionsOrCallback CallOptions | Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>
callback Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>

The function which will be called with the result of the API call. {Promise} - The promise which resolves when API call finishes. The promise has a method named "cancel" which cancels the ongoing API call.

Returns
Type Description
Promise<protos.google.protobuf.Empty>
Example

const client = longrunning.operationsClient();
await client.cancelOperation({name: ''});

checkBatchCreateFeaturesProgress(name)

checkBatchCreateFeaturesProgress(name: string): Promise<LROperation<protos.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse, protos.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata>>;

Check the status of the long running operation returned by batchCreateFeatures().

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse, protos.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The resource name of the EntityType/FeatureGroup to create the
   *  batch of Features under. Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
   *  `projects/{project}/locations/{location}/featureGroups/{feature_group}`
   */
  // const parent = 'abc123'
  /**
   *  Required. The request message specifying the Features to create. All
   *  Features must be created under the same parent EntityType / FeatureGroup.
   *  The `parent` field in each child request message can be omitted. If
   *  `parent` is set in a child request, then the value must match the `parent`
   *  value in this request message.
   */
  // const requests = [1,2,3,4]

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callBatchCreateFeatures() {
    // Construct request
    const request = {
      parent,
      requests,
    };

    // Run request
    const [operation] = await aiplatformClient.batchCreateFeatures(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callBatchCreateFeatures();

checkBatchReadFeatureValuesProgress(name)

checkBatchReadFeatureValuesProgress(name: string): Promise<LROperation<protos.google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse, protos.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata>>;

Check the status of the long running operation returned by batchReadFeatureValues().

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse, protos.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Each read instance consists of exactly one read timestamp and one or more
   *  entity IDs identifying entities of the corresponding EntityTypes whose
   *  Features are requested.
   *  Each output instance contains Feature values of requested entities
   *  concatenated together as of the read time.
   *  An example read instance may be `foo_entity_id, bar_entity_id,
   *  2020-01-01T10:00:00.123Z`.
   *  An example output instance may be `foo_entity_id, bar_entity_id,
   *  2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
   *  bar_entity_feature2_value`.
   *  Timestamp in each read instance must be millisecond-aligned.
   *  `csv_read_instances` are read instances stored in a plain-text CSV file.
   *  The header should be:
   *      ENTITY_TYPE_ID1, ENTITY_TYPE_ID2, ..., timestamp
   *  The columns can be in any order.
   *  Values in the timestamp column must use the RFC 3339 format, e.g.
   *  `2012-07-30T10:43:17.123Z`.
   */
  // const csvReadInstances = {}
  /**
   *  Similar to csv_read_instances, but from BigQuery source.
   */
  // const bigqueryReadInstances = {}
  /**
   *  Required. The resource name of the Featurestore from which to query Feature
   *  values. Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}`
   */
  // const featurestore = 'abc123'
  /**
   *  Required. Specifies output location and format.
   */
  // const destination = {}
  /**
   *  When not empty, the specified fields in the *_read_instances source will be
   *  joined as-is in the output, in addition to those fields from the
   *  Featurestore Entity.
   *  For BigQuery source, the type of the pass-through values will be
   *  automatically inferred. For CSV source, the pass-through values will be
   *  passed as opaque bytes.
   */
  // const passThroughFields = [1,2,3,4]
  /**
   *  Required. Specifies EntityType grouping Features to read values of and
   *  settings.
   */
  // const entityTypeSpecs = [1,2,3,4]
  /**
   *  Optional. Excludes Feature values with feature generation timestamp before
   *  this timestamp. If not set, retrieve oldest values kept in Feature Store.
   *  Timestamp, if present, must not have higher than millisecond precision.
   */
  // const startTime = {}

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callBatchReadFeatureValues() {
    // Construct request
    const request = {
      featurestore,
      destination,
      entityTypeSpecs,
    };

    // Run request
    const [operation] = await aiplatformClient.batchReadFeatureValues(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callBatchReadFeatureValues();

checkCreateEntityTypeProgress(name)

checkCreateEntityTypeProgress(name: string): Promise<LROperation<protos.google.cloud.aiplatform.v1.EntityType, protos.google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata>>;

Check the status of the long running operation returned by createEntityType().

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.aiplatform.v1.EntityType, protos.google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The resource name of the Featurestore to create EntityTypes.
   *  Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}`
   */
  // const parent = 'abc123'
  /**
   *  The EntityType to create.
   */
  // const entityType = {}
  /**
   *  Required. The ID to use for the EntityType, which will become the final
   *  component of the EntityType's resource name.
   *  This value may be up to 60 characters, and valid characters are
   *  `[a-z0-9_]`. The first character cannot be a number.
   *  The value must be unique within a featurestore.
   */
  // const entityTypeId = 'abc123'

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callCreateEntityType() {
    // Construct request
    const request = {
      parent,
      entityTypeId,
    };

    // Run request
    const [operation] = await aiplatformClient.createEntityType(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateEntityType();

checkCreateFeatureProgress(name)

checkCreateFeatureProgress(name: string): Promise<LROperation<protos.google.cloud.aiplatform.v1.Feature, protos.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata>>;

Check the status of the long running operation returned by createFeature().

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.aiplatform.v1.Feature, protos.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The resource name of the EntityType or FeatureGroup to create a
   *  Feature. Format for entity_type as parent:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
   *  Format for feature_group as parent:
   *  `projects/{project}/locations/{location}/featureGroups/{feature_group}`
   */
  // const parent = 'abc123'
  /**
   *  Required. The Feature to create.
   */
  // const feature = {}
  /**
   *  Required. The ID to use for the Feature, which will become the final
   *  component of the Feature's resource name.
   *  This value may be up to 128 characters, and valid characters are
   *  `[a-z0-9_]`. The first character cannot be a number.
   *  The value must be unique within an EntityType/FeatureGroup.
   */
  // const featureId = 'abc123'

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callCreateFeature() {
    // Construct request
    const request = {
      parent,
      feature,
      featureId,
    };

    // Run request
    const [operation] = await aiplatformClient.createFeature(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateFeature();

checkCreateFeaturestoreProgress(name)

checkCreateFeaturestoreProgress(name: string): Promise<LROperation<protos.google.cloud.aiplatform.v1.Featurestore, protos.google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata>>;

Check the status of the long running operation returned by createFeaturestore().

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.aiplatform.v1.Featurestore, protos.google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The resource name of the Location to create Featurestores.
   *  Format:
   *  `projects/{project}/locations/{location}`
   */
  // const parent = 'abc123'
  /**
   *  Required. The Featurestore to create.
   */
  // const featurestore = {}
  /**
   *  Required. The ID to use for this Featurestore, which will become the final
   *  component of the Featurestore's resource name.
   *  This value may be up to 60 characters, and valid characters are
   *  `[a-z0-9_]`. The first character cannot be a number.
   *  The value must be unique within the project and location.
   */
  // const featurestoreId = 'abc123'

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callCreateFeaturestore() {
    // Construct request
    const request = {
      parent,
      featurestore,
      featurestoreId,
    };

    // Run request
    const [operation] = await aiplatformClient.createFeaturestore(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateFeaturestore();

checkDeleteEntityTypeProgress(name)

checkDeleteEntityTypeProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.aiplatform.v1.DeleteOperationMetadata>>;

Check the status of the long running operation returned by deleteEntityType().

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.aiplatform.v1.DeleteOperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the EntityType to be deleted.
   *  Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
   */
  // const name = 'abc123'
  /**
   *  If set to true, any Features for this EntityType will also be deleted.
   *  (Otherwise, the request will only work if the EntityType has no Features.)
   */
  // const force = true

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callDeleteEntityType() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await aiplatformClient.deleteEntityType(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteEntityType();

checkDeleteFeatureProgress(name)

checkDeleteFeatureProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.aiplatform.v1.DeleteOperationMetadata>>;

Check the status of the long running operation returned by deleteFeature().

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.aiplatform.v1.DeleteOperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the Features to be deleted.
   *  Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
   *  `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`
   */
  // const name = 'abc123'

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callDeleteFeature() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await aiplatformClient.deleteFeature(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteFeature();

checkDeleteFeaturestoreProgress(name)

checkDeleteFeaturestoreProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.aiplatform.v1.DeleteOperationMetadata>>;

Check the status of the long running operation returned by deleteFeaturestore().

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.aiplatform.v1.DeleteOperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the Featurestore to be deleted.
   *  Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}`
   */
  // const name = 'abc123'
  /**
   *  If set to true, any EntityTypes and Features for this Featurestore will
   *  also be deleted. (Otherwise, the request will only work if the Featurestore
   *  has no EntityTypes.)
   */
  // const force = true

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callDeleteFeaturestore() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await aiplatformClient.deleteFeaturestore(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteFeaturestore();

checkDeleteFeatureValuesProgress(name)

checkDeleteFeatureValuesProgress(name: string): Promise<LROperation<protos.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse, protos.google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata>>;

Check the status of the long running operation returned by deleteFeatureValues().

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse, protos.google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Select feature values to be deleted by specifying entities.
   */
  // const selectEntity = {}
  /**
   *  Select feature values to be deleted by specifying time range and
   *  features.
   */
  // const selectTimeRangeAndFeature = {}
  /**
   *  Required. The resource name of the EntityType grouping the Features for
   *  which values are being deleted from. Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
   */
  // const entityType = 'abc123'

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callDeleteFeatureValues() {
    // Construct request
    const request = {
      entityType,
    };

    // Run request
    const [operation] = await aiplatformClient.deleteFeatureValues(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteFeatureValues();

checkExportFeatureValuesProgress(name)

checkExportFeatureValuesProgress(name: string): Promise<LROperation<protos.google.cloud.aiplatform.v1.ExportFeatureValuesResponse, protos.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata>>;

Check the status of the long running operation returned by exportFeatureValues().

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.aiplatform.v1.ExportFeatureValuesResponse, protos.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Exports the latest Feature values of all entities of the EntityType
   *  within a time range.
   */
  // const snapshotExport = {}
  /**
   *  Exports all historical values of all entities of the EntityType within a
   *  time range
   */
  // const fullExport = {}
  /**
   *  Required. The resource name of the EntityType from which to export Feature
   *  values. Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
   */
  // const entityType = 'abc123'
  /**
   *  Required. Specifies destination location and format.
   */
  // const destination = {}
  /**
   *  Required. Selects Features to export values of.
   */
  // const featureSelector = {}
  /**
   *  Per-Feature export settings.
   */
  // const settings = [1,2,3,4]

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callExportFeatureValues() {
    // Construct request
    const request = {
      entityType,
      destination,
      featureSelector,
    };

    // Run request
    const [operation] = await aiplatformClient.exportFeatureValues(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callExportFeatureValues();

checkImportFeatureValuesProgress(name)

checkImportFeatureValuesProgress(name: string): Promise<LROperation<protos.google.cloud.aiplatform.v1.ImportFeatureValuesResponse, protos.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata>>;

Check the status of the long running operation returned by importFeatureValues().

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.aiplatform.v1.ImportFeatureValuesResponse, protos.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   */
  // const avroSource = {}
  /**
   */
  // const bigquerySource = {}
  /**
   */
  // const csvSource = {}
  /**
   *  Source column that holds the Feature timestamp for all Feature
   *  values in each entity.
   */
  // const featureTimeField = 'abc123'
  /**
   *  Single Feature timestamp for all entities being imported. The
   *  timestamp must not have higher than millisecond precision.
   */
  // const featureTime = {}
  /**
   *  Required. The resource name of the EntityType grouping the Features for
   *  which values are being imported. Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
   */
  // const entityType = 'abc123'
  /**
   *  Source column that holds entity IDs. If not provided, entity IDs are
   *  extracted from the column named entity_id.
   */
  // const entityIdField = 'abc123'
  /**
   *  Required. Specifications defining which Feature values to import from the
   *  entity. The request fails if no feature_specs are provided, and having
   *  multiple feature_specs for one Feature is not allowed.
   */
  // const featureSpecs = [1,2,3,4]
  /**
   *  If set, data will not be imported for online serving. This
   *  is typically used for backfilling, where Feature generation timestamps are
   *  not in the timestamp range needed for online serving.
   */
  // const disableOnlineServing = true
  /**
   *  Specifies the number of workers that are used to write data to the
   *  Featurestore. Consider the online serving capacity that you require to
   *  achieve the desired import throughput without interfering with online
   *  serving. The value must be positive, and less than or equal to 100.
   *  If not set, defaults to using 1 worker. The low count ensures minimal
   *  impact on online serving performance.
   */
  // const workerCount = 1234
  /**
   *  If true, API doesn't start ingestion analysis pipeline.
   */
  // const disableIngestionAnalysis = true

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callImportFeatureValues() {
    // Construct request
    const request = {
      entityType,
      featureSpecs,
    };

    // Run request
    const [operation] = await aiplatformClient.importFeatureValues(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callImportFeatureValues();

checkUpdateFeaturestoreProgress(name)

checkUpdateFeaturestoreProgress(name: string): Promise<LROperation<protos.google.cloud.aiplatform.v1.Featurestore, protos.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata>>;

Check the status of the long running operation returned by updateFeaturestore().

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.aiplatform.v1.Featurestore, protos.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The Featurestore's `name` field is used to identify the
   *  Featurestore to be updated. Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}`
   */
  // const featurestore = {}
  /**
   *  Field mask is used to specify the fields to be overwritten in the
   *  Featurestore resource by the update.
   *  The fields specified in the update_mask are relative to the resource, not
   *  the full request. A field will be overwritten if it is in the mask. If the
   *  user does not provide a mask then only the non-empty fields present in the
   *  request will be overwritten. Set the update_mask to `*` to override all
   *  fields.
   *  Updatable fields:
   *    * `labels`
   *    * `online_serving_config.fixed_node_count`
   *    * `online_serving_config.scaling`
   *    * `online_storage_ttl_days`
   */
  // const updateMask = {}

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callUpdateFeaturestore() {
    // Construct request
    const request = {
      featurestore,
    };

    // Run request
    const [operation] = await aiplatformClient.updateFeaturestore(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateFeaturestore();

close()

close(): Promise<void>;

Terminate the gRPC channel and close the client.

The client will no longer be usable and all future behavior is undefined.

Returns
Type Description
Promise<void>

{Promise} A promise that resolves when the client is closed.

contextPath(project, location, metadataStore, context)

contextPath(project: string, location: string, metadataStore: string, context: string): string;

Return a fully-qualified context resource name string.

Parameters
Name Description
project string
location string
metadataStore string
context string
Returns
Type Description
string

{string} Resource name string.

createEntityType(request, options)

createEntityType(request?: protos.google.cloud.aiplatform.v1.ICreateEntityTypeRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.aiplatform.v1.IEntityType, protos.google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Creates a new EntityType in a given Featurestore.

Parameters
Name Description
request ICreateEntityTypeRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.aiplatform.v1.IEntityType, protos.google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The resource name of the Featurestore to create EntityTypes.
   *  Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}`
   */
  // const parent = 'abc123'
  /**
   *  The EntityType to create.
   */
  // const entityType = {}
  /**
   *  Required. The ID to use for the EntityType, which will become the final
   *  component of the EntityType's resource name.
   *  This value may be up to 60 characters, and valid characters are
   *  `[a-z0-9_]`. The first character cannot be a number.
   *  The value must be unique within a featurestore.
   */
  // const entityTypeId = 'abc123'

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callCreateEntityType() {
    // Construct request
    const request = {
      parent,
      entityTypeId,
    };

    // Run request
    const [operation] = await aiplatformClient.createEntityType(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateEntityType();

createEntityType(request, options, callback)

createEntityType(request: protos.google.cloud.aiplatform.v1.ICreateEntityTypeRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.aiplatform.v1.IEntityType, protos.google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateEntityTypeRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.aiplatform.v1.IEntityType, protos.google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createEntityType(request, callback)

createEntityType(request: protos.google.cloud.aiplatform.v1.ICreateEntityTypeRequest, callback: Callback<LROperation<protos.google.cloud.aiplatform.v1.IEntityType, protos.google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateEntityTypeRequest
callback Callback<LROperation<protos.google.cloud.aiplatform.v1.IEntityType, protos.google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createFeature(request, options)

createFeature(request?: protos.google.cloud.aiplatform.v1.ICreateFeatureRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.aiplatform.v1.IFeature, protos.google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Creates a new Feature in a given EntityType.

Parameters
Name Description
request ICreateFeatureRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.aiplatform.v1.IFeature, protos.google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The resource name of the EntityType or FeatureGroup to create a
   *  Feature. Format for entity_type as parent:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
   *  Format for feature_group as parent:
   *  `projects/{project}/locations/{location}/featureGroups/{feature_group}`
   */
  // const parent = 'abc123'
  /**
   *  Required. The Feature to create.
   */
  // const feature = {}
  /**
   *  Required. The ID to use for the Feature, which will become the final
   *  component of the Feature's resource name.
   *  This value may be up to 128 characters, and valid characters are
   *  `[a-z0-9_]`. The first character cannot be a number.
   *  The value must be unique within an EntityType/FeatureGroup.
   */
  // const featureId = 'abc123'

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callCreateFeature() {
    // Construct request
    const request = {
      parent,
      feature,
      featureId,
    };

    // Run request
    const [operation] = await aiplatformClient.createFeature(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateFeature();

createFeature(request, options, callback)

createFeature(request: protos.google.cloud.aiplatform.v1.ICreateFeatureRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.aiplatform.v1.IFeature, protos.google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateFeatureRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.aiplatform.v1.IFeature, protos.google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createFeature(request, callback)

createFeature(request: protos.google.cloud.aiplatform.v1.ICreateFeatureRequest, callback: Callback<LROperation<protos.google.cloud.aiplatform.v1.IFeature, protos.google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateFeatureRequest
callback Callback<LROperation<protos.google.cloud.aiplatform.v1.IFeature, protos.google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createFeaturestore(request, options)

createFeaturestore(request?: protos.google.cloud.aiplatform.v1.ICreateFeaturestoreRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.aiplatform.v1.IFeaturestore, protos.google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Creates a new Featurestore in a given project and location.

Parameters
Name Description
request ICreateFeaturestoreRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.aiplatform.v1.IFeaturestore, protos.google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The resource name of the Location to create Featurestores.
   *  Format:
   *  `projects/{project}/locations/{location}`
   */
  // const parent = 'abc123'
  /**
   *  Required. The Featurestore to create.
   */
  // const featurestore = {}
  /**
   *  Required. The ID to use for this Featurestore, which will become the final
   *  component of the Featurestore's resource name.
   *  This value may be up to 60 characters, and valid characters are
   *  `[a-z0-9_]`. The first character cannot be a number.
   *  The value must be unique within the project and location.
   */
  // const featurestoreId = 'abc123'

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callCreateFeaturestore() {
    // Construct request
    const request = {
      parent,
      featurestore,
      featurestoreId,
    };

    // Run request
    const [operation] = await aiplatformClient.createFeaturestore(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateFeaturestore();

createFeaturestore(request, options, callback)

createFeaturestore(request: protos.google.cloud.aiplatform.v1.ICreateFeaturestoreRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.aiplatform.v1.IFeaturestore, protos.google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateFeaturestoreRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.aiplatform.v1.IFeaturestore, protos.google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createFeaturestore(request, callback)

createFeaturestore(request: protos.google.cloud.aiplatform.v1.ICreateFeaturestoreRequest, callback: Callback<LROperation<protos.google.cloud.aiplatform.v1.IFeaturestore, protos.google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateFeaturestoreRequest
callback Callback<LROperation<protos.google.cloud.aiplatform.v1.IFeaturestore, protos.google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

customJobPath(project, location, customJob)

customJobPath(project: string, location: string, customJob: string): string;

Return a fully-qualified customJob resource name string.

Parameters
Name Description
project string
location string
customJob string
Returns
Type Description
string

{string} Resource name string.

dataItemPath(project, location, dataset, dataItem)

dataItemPath(project: string, location: string, dataset: string, dataItem: string): string;

Return a fully-qualified dataItem resource name string.

Parameters
Name Description
project string
location string
dataset string
dataItem string
Returns
Type Description
string

{string} Resource name string.

dataLabelingJobPath(project, location, dataLabelingJob)

dataLabelingJobPath(project: string, location: string, dataLabelingJob: string): string;

Return a fully-qualified dataLabelingJob resource name string.

Parameters
Name Description
project string
location string
dataLabelingJob string
Returns
Type Description
string

{string} Resource name string.

datasetPath(project, location, dataset)

datasetPath(project: string, location: string, dataset: string): string;

Return a fully-qualified dataset resource name string.

Parameters
Name Description
project string
location string
dataset string
Returns
Type Description
string

{string} Resource name string.

datasetVersionPath(project, location, dataset, datasetVersion)

datasetVersionPath(project: string, location: string, dataset: string, datasetVersion: string): string;

Return a fully-qualified datasetVersion resource name string.

Parameters
Name Description
project string
location string
dataset string
datasetVersion string
Returns
Type Description
string

{string} Resource name string.

deleteEntityType(request, options)

deleteEntityType(request?: protos.google.cloud.aiplatform.v1.IDeleteEntityTypeRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

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

Parameters
Name Description
request IDeleteEntityTypeRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the EntityType to be deleted.
   *  Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
   */
  // const name = 'abc123'
  /**
   *  If set to true, any Features for this EntityType will also be deleted.
   *  (Otherwise, the request will only work if the EntityType has no Features.)
   */
  // const force = true

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callDeleteEntityType() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await aiplatformClient.deleteEntityType(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteEntityType();

deleteEntityType(request, options, callback)

deleteEntityType(request: protos.google.cloud.aiplatform.v1.IDeleteEntityTypeRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteEntityTypeRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteEntityType(request, callback)

deleteEntityType(request: protos.google.cloud.aiplatform.v1.IDeleteEntityTypeRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteEntityTypeRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteFeature(request, options)

deleteFeature(request?: protos.google.cloud.aiplatform.v1.IDeleteFeatureRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Deletes a single Feature.

Parameters
Name Description
request IDeleteFeatureRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the Features to be deleted.
   *  Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
   *  `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`
   */
  // const name = 'abc123'

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callDeleteFeature() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await aiplatformClient.deleteFeature(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteFeature();

deleteFeature(request, options, callback)

deleteFeature(request: protos.google.cloud.aiplatform.v1.IDeleteFeatureRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteFeatureRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteFeature(request, callback)

deleteFeature(request: protos.google.cloud.aiplatform.v1.IDeleteFeatureRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteFeatureRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteFeaturestore(request, options)

deleteFeaturestore(request?: protos.google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

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

Parameters
Name Description
request IDeleteFeaturestoreRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the Featurestore to be deleted.
   *  Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}`
   */
  // const name = 'abc123'
  /**
   *  If set to true, any EntityTypes and Features for this Featurestore will
   *  also be deleted. (Otherwise, the request will only work if the Featurestore
   *  has no EntityTypes.)
   */
  // const force = true

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callDeleteFeaturestore() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await aiplatformClient.deleteFeaturestore(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteFeaturestore();

deleteFeaturestore(request, options, callback)

deleteFeaturestore(request: protos.google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteFeaturestoreRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteFeaturestore(request, callback)

deleteFeaturestore(request: protos.google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteFeaturestoreRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteFeatureValues(request, options)

deleteFeatureValues(request?: protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

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.

Parameters
Name Description
request IDeleteFeatureValuesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Select feature values to be deleted by specifying entities.
   */
  // const selectEntity = {}
  /**
   *  Select feature values to be deleted by specifying time range and
   *  features.
   */
  // const selectTimeRangeAndFeature = {}
  /**
   *  Required. The resource name of the EntityType grouping the Features for
   *  which values are being deleted from. Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
   */
  // const entityType = 'abc123'

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callDeleteFeatureValues() {
    // Construct request
    const request = {
      entityType,
    };

    // Run request
    const [operation] = await aiplatformClient.deleteFeatureValues(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteFeatureValues();

deleteFeatureValues(request, options, callback)

deleteFeatureValues(request: protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteFeatureValuesRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteFeatureValues(request, callback)

deleteFeatureValues(request: protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, callback: Callback<LROperation<protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteFeatureValuesRequest
callback Callback<LROperation<protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteOperation(request, optionsOrCallback, callback)

deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>;

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

Parameters
Name Description
request DeleteOperationRequest

The request object that will be sent.

optionsOrCallback CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>
callback Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>

The function which will be called with the result of the API call. {Promise} - The promise which resolves when API call finishes. The promise has a method named "cancel" which cancels the ongoing API call.

Returns
Type Description
Promise<protos.google.protobuf.Empty>
Example

const client = longrunning.operationsClient();
await client.deleteOperation({name: ''});

deploymentResourcePoolPath(project, location, deploymentResourcePool)

deploymentResourcePoolPath(project: string, location: string, deploymentResourcePool: string): string;

Return a fully-qualified deploymentResourcePool resource name string.

Parameters
Name Description
project string
location string
deploymentResourcePool string
Returns
Type Description
string

{string} Resource name string.

entityTypePath(project, location, featurestore, entityType)

entityTypePath(project: string, location: string, featurestore: string, entityType: string): string;

Return a fully-qualified entityType resource name string.

Parameters
Name Description
project string
location string
featurestore string
entityType string
Returns
Type Description
string

{string} Resource name string.

executionPath(project, location, metadataStore, execution)

executionPath(project: string, location: string, metadataStore: string, execution: string): string;

Return a fully-qualified execution resource name string.

Parameters
Name Description
project string
location string
metadataStore string
execution string
Returns
Type Description
string

{string} Resource name string.

exportFeatureValues(request, options)

exportFeatureValues(request?: protos.google.cloud.aiplatform.v1.IExportFeatureValuesRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.aiplatform.v1.IExportFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

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

Parameters
Name Description
request IExportFeatureValuesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.aiplatform.v1.IExportFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Exports the latest Feature values of all entities of the EntityType
   *  within a time range.
   */
  // const snapshotExport = {}
  /**
   *  Exports all historical values of all entities of the EntityType within a
   *  time range
   */
  // const fullExport = {}
  /**
   *  Required. The resource name of the EntityType from which to export Feature
   *  values. Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
   */
  // const entityType = 'abc123'
  /**
   *  Required. Specifies destination location and format.
   */
  // const destination = {}
  /**
   *  Required. Selects Features to export values of.
   */
  // const featureSelector = {}
  /**
   *  Per-Feature export settings.
   */
  // const settings = [1,2,3,4]

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callExportFeatureValues() {
    // Construct request
    const request = {
      entityType,
      destination,
      featureSelector,
    };

    // Run request
    const [operation] = await aiplatformClient.exportFeatureValues(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callExportFeatureValues();

exportFeatureValues(request, options, callback)

exportFeatureValues(request: protos.google.cloud.aiplatform.v1.IExportFeatureValuesRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.aiplatform.v1.IExportFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IExportFeatureValuesRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.aiplatform.v1.IExportFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

exportFeatureValues(request, callback)

exportFeatureValues(request: protos.google.cloud.aiplatform.v1.IExportFeatureValuesRequest, callback: Callback<LROperation<protos.google.cloud.aiplatform.v1.IExportFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IExportFeatureValuesRequest
callback Callback<LROperation<protos.google.cloud.aiplatform.v1.IExportFeatureValuesResponse, protos.google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

featureGroupPath(project, location, featureGroup)

featureGroupPath(project: string, location: string, featureGroup: string): string;

Return a fully-qualified featureGroup resource name string.

Parameters
Name Description
project string
location string
featureGroup string
Returns
Type Description
string

{string} Resource name string.

featureOnlineStorePath(project, location, featureOnlineStore)

featureOnlineStorePath(project: string, location: string, featureOnlineStore: string): string;

Return a fully-qualified featureOnlineStore resource name string.

Parameters
Name Description
project string
location string
featureOnlineStore string
Returns
Type Description
string

{string} Resource name string.

featurestorePath(project, location, featurestore)

featurestorePath(project: string, location: string, featurestore: string): string;

Return a fully-qualified featurestore resource name string.

Parameters
Name Description
project string
location string
featurestore string
Returns
Type Description
string

{string} Resource name string.

featureViewPath(project, location, featureOnlineStore, featureView)

featureViewPath(project: string, location: string, featureOnlineStore: string, featureView: string): string;

Return a fully-qualified featureView resource name string.

Parameters
Name Description
project string
location string
featureOnlineStore string
featureView string
Returns
Type Description
string

{string} Resource name string.

featureViewSyncPath(project, location, featureOnlineStore, featureView)

featureViewSyncPath(project: string, location: string, featureOnlineStore: string, featureView: string): string;

Return a fully-qualified featureViewSync resource name string.

Parameters
Name Description
project string
location string
featureOnlineStore string
featureView string
Returns
Type Description
string

{string} Resource name string.

getEntityType(request, options)

getEntityType(request?: protos.google.cloud.aiplatform.v1.IGetEntityTypeRequest, options?: CallOptions): Promise<[
        protos.google.cloud.aiplatform.v1.IEntityType,
        protos.google.cloud.aiplatform.v1.IGetEntityTypeRequest | undefined,
        {} | undefined
    ]>;

Gets details of a single EntityType.

Parameters
Name Description
request IGetEntityTypeRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.aiplatform.v1.IEntityType, protos.google.cloud.aiplatform.v1.IGetEntityTypeRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing EntityType. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the EntityType resource.
   *  Format:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
   */
  // const name = 'abc123'

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callGetEntityType() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await aiplatformClient.getEntityType(request);
    console.log(response);
  }

  callGetEntityType();

getEntityType(request, options, callback)

getEntityType(request: protos.google.cloud.aiplatform.v1.IGetEntityTypeRequest, options: CallOptions, callback: Callback<protos.google.cloud.aiplatform.v1.IEntityType, protos.google.cloud.aiplatform.v1.IGetEntityTypeRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetEntityTypeRequest
options CallOptions
callback Callback<protos.google.cloud.aiplatform.v1.IEntityType, protos.google.cloud.aiplatform.v1.IGetEntityTypeRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getEntityType(request, callback)

getEntityType(request: protos.google.cloud.aiplatform.v1.IGetEntityTypeRequest, callback: Callback<protos.google.cloud.aiplatform.v1.IEntityType, protos.google.cloud.aiplatform.v1.IGetEntityTypeRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetEntityTypeRequest
callback Callback<protos.google.cloud.aiplatform.v1.IEntityType, protos.google.cloud.aiplatform.v1.IGetEntityTypeRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getFeature(request, options)

getFeature(request?: protos.google.cloud.aiplatform.v1.IGetFeatureRequest, options?: CallOptions): Promise<[
        protos.google.cloud.aiplatform.v1.IFeature,
        protos.google.cloud.aiplatform.v1.IGetFeatureRequest | undefined,
        {} | undefined
    ]>;

Gets details of a single Feature.

Parameters
Name Description
request IGetFeatureRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.aiplatform.v1.IFeature, protos.google.cloud.aiplatform.v1.IGetFeatureRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the Feature resource.
   *  Format for entity_type as parent:
   *  `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
   *  Format for feature_group as parent:
   *  `projects/{project}/locations/{location}/featureGroups/{feature_group}`
   */
  // const name = 'abc123'

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callGetFeature() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await aiplatformClient.getFeature(request);
    console.log(response);
  }

  callGetFeature();

getFeature(request, options, callback)

getFeature(request: protos.google.cloud.aiplatform.v1.IGetFeatureRequest, options: CallOptions, callback: Callback<protos.google.cloud.aiplatform.v1.IFeature, protos.google.cloud.aiplatform.v1.IGetFeatureRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetFeatureRequest
options CallOptions
callback Callback<protos.google.cloud.aiplatform.v1.IFeature, protos.google.cloud.aiplatform.v1.IGetFeatureRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getFeature(request, callback)

getFeature(request: protos.google.cloud.aiplatform.v1.IGetFeatureRequest, callback: Callback<protos.google.cloud.aiplatform.v1.IFeature, protos.google.cloud.aiplatform.v1.IGetFeatureRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetFeatureRequest
callback Callback<protos.google.cloud.aiplatform.v1.IFeature, protos.google.cloud.aiplatform.v1.IGetFeatureRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getFeaturestore(request, options)

getFeaturestore(request?: protos.google.cloud.aiplatform.v1.IGetFeaturestoreRequest, options?: CallOptions): Promise<[
        protos.google.cloud.aiplatform.v1.IFeaturestore,
        protos.google.cloud.aiplatform.v1.IGetFeaturestoreRequest | undefined,
        {} | undefined
    ]>;

Gets details of a single Featurestore.

Parameters
Name Description
request IGetFeaturestoreRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.aiplatform.v1.IFeaturestore, protos.google.cloud.aiplatform.v1.IGetFeaturestoreRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the Featurestore resource.
   */
  // const name = 'abc123'

  // Imports the Aiplatform library
  const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1;

  // Instantiates a client
  const aiplatformClient = new FeaturestoreServiceClient();

  async function callGetFeaturestore() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await aiplatformClient.getFeaturestore(request);
    console.log(response);
  }

  callGetFeaturestore();

getFeaturestore(request, options, callback)

getFeaturestore(request: protos.google.cloud.aiplatform.v1.IGetFeaturestoreRequest, options: CallOptions, callback: Callback<protos.google.cloud.aiplatform.v1.IFeaturestore, protos.google.cloud.aiplatform.v1.IGetFeaturestoreRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetFeaturestoreRequest
options CallOptions
callback Callback<protos.google.cloud.aiplatform.v1.IFeaturestore, protos.google.cloud.aiplatform.v1.IGetFeaturestoreRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getFeaturestore(request, callback)

getFeaturestore(request: protos.google.cloud.aiplatform.v1.IGetFeaturestoreRequest, callback: Callback<protos.google.cloud.aiplatform.v1.IFeaturestore, protos.google.cloud.aiplatform.v1.IGetFeaturestoreRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetFeaturestoreRequest
callback Callback<protos.google.cloud.aiplatform.v1.IFeaturestore, protos.google.cloud.aiplatform.v1.IGetFeaturestoreRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getIamPolicy(request, options, callback)

getIamPolicy(request: IamProtos.google.iam.v1.GetIamPolicyRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>): Promise<[IamProtos.google.iam.v1.Policy]>;

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Parameters
Name Description
request IamProtos.google.iam.v1.GetIamPolicyRequest

The request object that will be sent.

options CallOptions | Callback<google.iam.v1.Policy, google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>

Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details.

callback Callback<google.iam.v1.Policy, google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>

The function which will be called with the result of the API call.

The second parameter to the callback is an object representing .

Returns
Type Description
Promise<[google.iam.v1.Policy]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . The promise has a method named "cancel" which cancels the ongoing API call.

getLocation(request, options, callback)

getLocation(request: LocationProtos.google.cloud.location.IGetLocationRequest, options?: gax.CallOptions | Callback<LocationProtos.google.cloud.location.ILocation, LocationProtos.google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>, callback?: Callback<LocationProtos.google.cloud.location.ILocation, LocationProtos.google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>): Promise<LocationProtos.google.cloud.location.ILocation>;

Gets information about a location.

Parameters
Name Description
request LocationProtos.google.cloud.location.IGetLocationRequest

The request object that will be sent.

options CallOptions | Callback<google.cloud.location.ILocation, google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>

Call options. See CallOptions for more details.

callback Callback<google.cloud.location.ILocation, google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>
Returns
Type Description
Promise<google.cloud.location.ILocation>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples.

Example

const [response] = await client.getLocation(request);

getOperation(request, optionsOrCallback, callback)

getOperation(request: protos.google.longrunning.GetOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>;

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

Parameters
Name Description
request GetOperationRequest

The request object that will be sent.

optionsOrCallback CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>
callback Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>

The function which will be called with the result of the API call.

The second parameter to the callback is an object representing . {Promise} - The promise which resolves to an array. The first element of the array is an object representing . The promise has a method named "cancel" which cancels the ongoing API call.

Returns
Type Description
Promise<[protos.google.longrunning.Operation]>
Example

const client = longrunning.operationsClient();
const name = '';
const [response] = await client.getOperation({name});
// doThingsWith(response)

getProjectId()

getProjectId(): Promise<string>;
Returns
Type Description
Promise<string>

getProjectId(callback)

getProjectId(callback: Callback<string, undefined, undefined>): void