Class CreateFeatureRequest.Builder (3.56.0)

public static final class CreateFeatureRequest.Builder extends GeneratedMessageV3.Builder<CreateFeatureRequest.Builder> implements CreateFeatureRequestOrBuilder

Request message for FeaturestoreService.CreateFeature. Request message for FeatureRegistryService.CreateFeature.

Protobuf type google.cloud.aiplatform.v1.CreateFeatureRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateFeatureRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateFeatureRequest.Builder
Overrides

build()

public CreateFeatureRequest build()
Returns
Type Description
CreateFeatureRequest

buildPartial()

public CreateFeatureRequest buildPartial()
Returns
Type Description
CreateFeatureRequest

clear()

public CreateFeatureRequest.Builder clear()
Returns
Type Description
CreateFeatureRequest.Builder
Overrides

clearFeature()

public CreateFeatureRequest.Builder clearFeature()

Required. The Feature to create.

.google.cloud.aiplatform.v1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateFeatureRequest.Builder

clearFeatureId()

public CreateFeatureRequest.Builder clearFeatureId()

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.

string feature_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateFeatureRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateFeatureRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateFeatureRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateFeatureRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateFeatureRequest.Builder
Overrides

clearParent()

public CreateFeatureRequest.Builder clearParent()

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}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateFeatureRequest.Builder

This builder for chaining.

clone()

public CreateFeatureRequest.Builder clone()
Returns
Type Description
CreateFeatureRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateFeatureRequest getDefaultInstanceForType()
Returns
Type Description
CreateFeatureRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFeature()

public Feature getFeature()

Required. The Feature to create.

.google.cloud.aiplatform.v1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Feature

The feature.

getFeatureBuilder()

public Feature.Builder getFeatureBuilder()

Required. The Feature to create.

.google.cloud.aiplatform.v1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Feature.Builder

getFeatureId()

public String 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.

string feature_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The featureId.

getFeatureIdBytes()

public ByteString getFeatureIdBytes()

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.

string feature_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for featureId.

getFeatureOrBuilder()

public FeatureOrBuilder getFeatureOrBuilder()

Required. The Feature to create.

.google.cloud.aiplatform.v1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FeatureOrBuilder

getParent()

public String 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}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

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}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasFeature()

public boolean hasFeature()

Required. The Feature to create.

.google.cloud.aiplatform.v1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the feature field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFeature(Feature value)

public CreateFeatureRequest.Builder mergeFeature(Feature value)

Required. The Feature to create.

.google.cloud.aiplatform.v1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Feature
Returns
Type Description
CreateFeatureRequest.Builder

mergeFrom(CreateFeatureRequest other)

public CreateFeatureRequest.Builder mergeFrom(CreateFeatureRequest other)
Parameter
Name Description
other CreateFeatureRequest
Returns
Type Description
CreateFeatureRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateFeatureRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateFeatureRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateFeatureRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateFeatureRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateFeatureRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateFeatureRequest.Builder
Overrides

setFeature(Feature value)

public CreateFeatureRequest.Builder setFeature(Feature value)

Required. The Feature to create.

.google.cloud.aiplatform.v1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Feature
Returns
Type Description
CreateFeatureRequest.Builder

setFeature(Feature.Builder builderForValue)

public CreateFeatureRequest.Builder setFeature(Feature.Builder builderForValue)

Required. The Feature to create.

.google.cloud.aiplatform.v1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Feature.Builder
Returns
Type Description
CreateFeatureRequest.Builder

setFeatureId(String value)

public CreateFeatureRequest.Builder setFeatureId(String value)

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.

string feature_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The featureId to set.

Returns
Type Description
CreateFeatureRequest.Builder

This builder for chaining.

setFeatureIdBytes(ByteString value)

public CreateFeatureRequest.Builder setFeatureIdBytes(ByteString value)

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.

string feature_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for featureId to set.

Returns
Type Description
CreateFeatureRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateFeatureRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateFeatureRequest.Builder
Overrides

setParent(String value)

public CreateFeatureRequest.Builder setParent(String value)

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}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateFeatureRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateFeatureRequest.Builder setParentBytes(ByteString value)

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}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateFeatureRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateFeatureRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateFeatureRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateFeatureRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateFeatureRequest.Builder
Overrides