Class WriteFeatureValuesPayload.Builder (3.9.0)

public static final class WriteFeatureValuesPayload.Builder extends GeneratedMessageV3.Builder<WriteFeatureValuesPayload.Builder> implements WriteFeatureValuesPayloadOrBuilder

Contains Feature values to be written for a specific entity.

Protobuf type google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WriteFeatureValuesPayload build()
Returns
TypeDescription
WriteFeatureValuesPayload

buildPartial()

public WriteFeatureValuesPayload buildPartial()
Returns
TypeDescription
WriteFeatureValuesPayload

clear()

public WriteFeatureValuesPayload.Builder clear()
Returns
TypeDescription
WriteFeatureValuesPayload.Builder
Overrides

clearEntityId()

public WriteFeatureValuesPayload.Builder clearEntityId()

Required. The ID of the entity.

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

Returns
TypeDescription
WriteFeatureValuesPayload.Builder

This builder for chaining.

clearFeatureValues()

public WriteFeatureValuesPayload.Builder clearFeatureValues()
Returns
TypeDescription
WriteFeatureValuesPayload.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public WriteFeatureValuesPayload.Builder clone()
Returns
TypeDescription
WriteFeatureValuesPayload.Builder
Overrides

containsFeatureValues(String key)

public boolean containsFeatureValues(String key)

Required. Feature values to be written, mapping from Feature ID to value. Up to 100,000 feature_values entries may be written across all payloads. The feature generation time, aligned by days, must be no older than five years (1825 days) and no later than one year (366 days) in the future.

map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public WriteFeatureValuesPayload getDefaultInstanceForType()
Returns
TypeDescription
WriteFeatureValuesPayload

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntityId()

public String getEntityId()

Required. The ID of the entity.

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

Returns
TypeDescription
String

The entityId.

getEntityIdBytes()

public ByteString getEntityIdBytes()

Required. The ID of the entity.

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

Returns
TypeDescription
ByteString

The bytes for entityId.

getFeatureValues()

public Map<String,FeatureValue> getFeatureValues()
Returns
TypeDescription
Map<String,FeatureValue>

getFeatureValuesCount()

public int getFeatureValuesCount()

Required. Feature values to be written, mapping from Feature ID to value. Up to 100,000 feature_values entries may be written across all payloads. The feature generation time, aligned by days, must be no older than five years (1825 days) and no later than one year (366 days) in the future.

map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getFeatureValuesMap()

public Map<String,FeatureValue> getFeatureValuesMap()

Required. Feature values to be written, mapping from Feature ID to value. Up to 100,000 feature_values entries may be written across all payloads. The feature generation time, aligned by days, must be no older than five years (1825 days) and no later than one year (366 days) in the future.

map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Map<String,FeatureValue>

getFeatureValuesOrDefault(String key, FeatureValue defaultValue)

public FeatureValue getFeatureValuesOrDefault(String key, FeatureValue defaultValue)

Required. Feature values to be written, mapping from Feature ID to value. Up to 100,000 feature_values entries may be written across all payloads. The feature generation time, aligned by days, must be no older than five years (1825 days) and no later than one year (366 days) in the future.

map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
keyString
defaultValueFeatureValue
Returns
TypeDescription
FeatureValue

getFeatureValuesOrThrow(String key)

public FeatureValue getFeatureValuesOrThrow(String key)

Required. Feature values to be written, mapping from Feature ID to value. Up to 100,000 feature_values entries may be written across all payloads. The feature generation time, aligned by days, must be no older than five years (1825 days) and no later than one year (366 days) in the future.

map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
keyString
Returns
TypeDescription
FeatureValue

getMutableFeatureValues()

public Map<String,FeatureValue> getMutableFeatureValues()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,FeatureValue>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WriteFeatureValuesPayload other)

public WriteFeatureValuesPayload.Builder mergeFrom(WriteFeatureValuesPayload other)
Parameter
NameDescription
otherWriteFeatureValuesPayload
Returns
TypeDescription
WriteFeatureValuesPayload.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllFeatureValues(Map<String,FeatureValue> values)

public WriteFeatureValuesPayload.Builder putAllFeatureValues(Map<String,FeatureValue> values)

Required. Feature values to be written, mapping from Feature ID to value. Up to 100,000 feature_values entries may be written across all payloads. The feature generation time, aligned by days, must be no older than five years (1825 days) and no later than one year (366 days) in the future.

map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesMap<String,FeatureValue>
Returns
TypeDescription
WriteFeatureValuesPayload.Builder

putFeatureValues(String key, FeatureValue value)

public WriteFeatureValuesPayload.Builder putFeatureValues(String key, FeatureValue value)

Required. Feature values to be written, mapping from Feature ID to value. Up to 100,000 feature_values entries may be written across all payloads. The feature generation time, aligned by days, must be no older than five years (1825 days) and no later than one year (366 days) in the future.

map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
keyString
valueFeatureValue
Returns
TypeDescription
WriteFeatureValuesPayload.Builder

removeFeatureValues(String key)

public WriteFeatureValuesPayload.Builder removeFeatureValues(String key)

Required. Feature values to be written, mapping from Feature ID to value. Up to 100,000 feature_values entries may be written across all payloads. The feature generation time, aligned by days, must be no older than five years (1825 days) and no later than one year (366 days) in the future.

map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
keyString
Returns
TypeDescription
WriteFeatureValuesPayload.Builder

setEntityId(String value)

public WriteFeatureValuesPayload.Builder setEntityId(String value)

Required. The ID of the entity.

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

Parameter
NameDescription
valueString

The entityId to set.

Returns
TypeDescription
WriteFeatureValuesPayload.Builder

This builder for chaining.

setEntityIdBytes(ByteString value)

public WriteFeatureValuesPayload.Builder setEntityIdBytes(ByteString value)

Required. The ID of the entity.

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

Parameter
NameDescription
valueByteString

The bytes for entityId to set.

Returns
TypeDescription
WriteFeatureValuesPayload.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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