Google Cloud Ai Platform V1 Client - Class CreateFeatureRequest (0.28.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class CreateFeatureRequest.

Request message for FeaturestoreService.CreateFeature.

Request message for FeatureRegistryService.CreateFeature.

Generated from protobuf message google.cloud.aiplatform.v1.CreateFeatureRequest

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

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}

↳ feature Google\Cloud\AIPlatform\V1\Feature

Required. The Feature to create.

↳ feature_id string

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.

getParent

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}

Returns
TypeDescription
string

setParent

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}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFeature

Required. The Feature to create.

Returns
TypeDescription
Google\Cloud\AIPlatform\V1\Feature|null

hasFeature

clearFeature

setFeature

Required. The Feature to create.

Parameter
NameDescription
var Google\Cloud\AIPlatform\V1\Feature
Returns
TypeDescription
$this

getFeatureId

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.

Returns
TypeDescription
string

setFeatureId

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

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} Please see Google\Cloud\AIPlatform\V1\FeaturestoreServiceClient::entityTypeName() for help formatting this field.

feature Google\Cloud\AIPlatform\V1\Feature

Required. The Feature to create.

Returns
TypeDescription
Google\Cloud\AIPlatform\V1\CreateFeatureRequest

static::buildFromParentFeatureFeatureId

Parameters
NameDescription
parent string

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} Please see Google\Cloud\AIPlatform\V1\FeaturestoreServiceClient::entityTypeName() for help formatting this field.

feature Google\Cloud\AIPlatform\V1\Feature

Required. The Feature to create.

featureId string

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.

Returns
TypeDescription
Google\Cloud\AIPlatform\V1\CreateFeatureRequest