Class ImportFeatureValuesRequest.FeatureSpec.Builder (3.24.0)

public static final class ImportFeatureValuesRequest.FeatureSpec.Builder extends GeneratedMessageV3.Builder<ImportFeatureValuesRequest.FeatureSpec.Builder> implements ImportFeatureValuesRequest.FeatureSpecOrBuilder

Defines the Feature value(s) to import.

Protobuf type google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportFeatureValuesRequest.FeatureSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder
Overrides

build()

public ImportFeatureValuesRequest.FeatureSpec build()
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec

buildPartial()

public ImportFeatureValuesRequest.FeatureSpec buildPartial()
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec

clear()

public ImportFeatureValuesRequest.FeatureSpec.Builder clear()
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ImportFeatureValuesRequest.FeatureSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder
Overrides

clearId()

public ImportFeatureValuesRequest.FeatureSpec.Builder clearId()

Required. ID of the Feature to import values of. This Feature must exist in the target EntityType, or the request will fail.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportFeatureValuesRequest.FeatureSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder
Overrides

clearSourceField()

public ImportFeatureValuesRequest.FeatureSpec.Builder clearSourceField()

Source column to get the Feature values from. If not set, uses the column with the same name as the Feature ID.

string source_field = 2;

Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder

This builder for chaining.

clone()

public ImportFeatureValuesRequest.FeatureSpec.Builder clone()
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder
Overrides

getDefaultInstanceForType()

public ImportFeatureValuesRequest.FeatureSpec getDefaultInstanceForType()
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public String getId()

Required. ID of the Feature to import values of. This Feature must exist in the target EntityType, or the request will fail.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Required. ID of the Feature to import values of. This Feature must exist in the target EntityType, or the request will fail.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for id.

getSourceField()

public String getSourceField()

Source column to get the Feature values from. If not set, uses the column with the same name as the Feature ID.

string source_field = 2;

Returns
TypeDescription
String

The sourceField.

getSourceFieldBytes()

public ByteString getSourceFieldBytes()

Source column to get the Feature values from. If not set, uses the column with the same name as the Feature ID.

string source_field = 2;

Returns
TypeDescription
ByteString

The bytes for sourceField.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportFeatureValuesRequest.FeatureSpec other)

public ImportFeatureValuesRequest.FeatureSpec.Builder mergeFrom(ImportFeatureValuesRequest.FeatureSpec other)
Parameter
NameDescription
otherImportFeatureValuesRequest.FeatureSpec
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportFeatureValuesRequest.FeatureSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImportFeatureValuesRequest.FeatureSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportFeatureValuesRequest.FeatureSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ImportFeatureValuesRequest.FeatureSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder
Overrides

setId(String value)

public ImportFeatureValuesRequest.FeatureSpec.Builder setId(String value)

Required. ID of the Feature to import values of. This Feature must exist in the target EntityType, or the request will fail.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder

This builder for chaining.

setIdBytes(ByteString value)

public ImportFeatureValuesRequest.FeatureSpec.Builder setIdBytes(ByteString value)

Required. ID of the Feature to import values of. This Feature must exist in the target EntityType, or the request will fail.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder

This builder for chaining.

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

public ImportFeatureValuesRequest.FeatureSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder
Overrides

setSourceField(String value)

public ImportFeatureValuesRequest.FeatureSpec.Builder setSourceField(String value)

Source column to get the Feature values from. If not set, uses the column with the same name as the Feature ID.

string source_field = 2;

Parameter
NameDescription
valueString

The sourceField to set.

Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder

This builder for chaining.

setSourceFieldBytes(ByteString value)

public ImportFeatureValuesRequest.FeatureSpec.Builder setSourceFieldBytes(ByteString value)

Source column to get the Feature values from. If not set, uses the column with the same name as the Feature ID.

string source_field = 2;

Parameter
NameDescription
valueByteString

The bytes for sourceField to set.

Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportFeatureValuesRequest.FeatureSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportFeatureValuesRequest.FeatureSpec.Builder
Overrides