Class AutoMlTablesInputs.Transformation.TimestampTransformation.Builder (3.19.0)

public static final class AutoMlTablesInputs.Transformation.TimestampTransformation.Builder extends GeneratedMessageV3.Builder<AutoMlTablesInputs.Transformation.TimestampTransformation.Builder> implements AutoMlTablesInputs.Transformation.TimestampTransformationOrBuilder

Training pipeline will perform following transformation functions.

  • Apply the transformation functions for Numerical columns.
  • Determine the year, month, day,and weekday. Treat each value from the
  • timestamp as a Categorical column.
  • Invalid numerical values (for example, values that fall outside of a typical timestamp range, or are extreme values) receive no special treatment and are not removed.

Protobuf type google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AutoMlTablesInputs.Transformation.TimestampTransformation.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutoMlTablesInputs.Transformation.TimestampTransformation build()
Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation

buildPartial()

public AutoMlTablesInputs.Transformation.TimestampTransformation buildPartial()
Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation

clear()

public AutoMlTablesInputs.Transformation.TimestampTransformation.Builder clear()
Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder
Overrides

clearColumnName()

public AutoMlTablesInputs.Transformation.TimestampTransformation.Builder clearColumnName()

string column_name = 1;

Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AutoMlTablesInputs.Transformation.TimestampTransformation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder
Overrides

clearInvalidValuesAllowed()

public AutoMlTablesInputs.Transformation.TimestampTransformation.Builder clearInvalidValuesAllowed()

If invalid values is allowed, the training pipeline will create a boolean feature that indicated whether the value is valid. Otherwise, the training pipeline will discard the input row from trainining data.

bool invalid_values_allowed = 3;

Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AutoMlTablesInputs.Transformation.TimestampTransformation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder
Overrides

clearTimeFormat()

public AutoMlTablesInputs.Transformation.TimestampTransformation.Builder clearTimeFormat()

The format in which that time field is expressed. The time_format must either be one of:

  • unix-seconds
  • unix-milliseconds
  • unix-microseconds
  • unix-nanoseconds (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in strftime syntax. If time_format is not set, then the default format is RFC 3339 date-time format, where time-offset = "Z" (e.g. 1985-04-12T23:20:50.52Z)

string time_format = 2;

Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder

This builder for chaining.

clone()

public AutoMlTablesInputs.Transformation.TimestampTransformation.Builder clone()
Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder
Overrides

getColumnName()

public String getColumnName()

string column_name = 1;

Returns
TypeDescription
String

The columnName.

getColumnNameBytes()

public ByteString getColumnNameBytes()

string column_name = 1;

Returns
TypeDescription
ByteString

The bytes for columnName.

getDefaultInstanceForType()

public AutoMlTablesInputs.Transformation.TimestampTransformation getDefaultInstanceForType()
Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInvalidValuesAllowed()

public boolean getInvalidValuesAllowed()

If invalid values is allowed, the training pipeline will create a boolean feature that indicated whether the value is valid. Otherwise, the training pipeline will discard the input row from trainining data.

bool invalid_values_allowed = 3;

Returns
TypeDescription
boolean

The invalidValuesAllowed.

getTimeFormat()

public String getTimeFormat()

The format in which that time field is expressed. The time_format must either be one of:

  • unix-seconds
  • unix-milliseconds
  • unix-microseconds
  • unix-nanoseconds (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in strftime syntax. If time_format is not set, then the default format is RFC 3339 date-time format, where time-offset = "Z" (e.g. 1985-04-12T23:20:50.52Z)

string time_format = 2;

Returns
TypeDescription
String

The timeFormat.

getTimeFormatBytes()

public ByteString getTimeFormatBytes()

The format in which that time field is expressed. The time_format must either be one of:

  • unix-seconds
  • unix-milliseconds
  • unix-microseconds
  • unix-nanoseconds (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in strftime syntax. If time_format is not set, then the default format is RFC 3339 date-time format, where time-offset = "Z" (e.g. 1985-04-12T23:20:50.52Z)

string time_format = 2;

Returns
TypeDescription
ByteString

The bytes for timeFormat.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AutoMlTablesInputs.Transformation.TimestampTransformation other)

public AutoMlTablesInputs.Transformation.TimestampTransformation.Builder mergeFrom(AutoMlTablesInputs.Transformation.TimestampTransformation other)
Parameter
NameDescription
otherAutoMlTablesInputs.Transformation.TimestampTransformation
Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AutoMlTablesInputs.Transformation.TimestampTransformation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutoMlTablesInputs.Transformation.TimestampTransformation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder
Overrides

setColumnName(String value)

public AutoMlTablesInputs.Transformation.TimestampTransformation.Builder setColumnName(String value)

string column_name = 1;

Parameter
NameDescription
valueString

The columnName to set.

Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder

This builder for chaining.

setColumnNameBytes(ByteString value)

public AutoMlTablesInputs.Transformation.TimestampTransformation.Builder setColumnNameBytes(ByteString value)

string column_name = 1;

Parameter
NameDescription
valueByteString

The bytes for columnName to set.

Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInvalidValuesAllowed(boolean value)

public AutoMlTablesInputs.Transformation.TimestampTransformation.Builder setInvalidValuesAllowed(boolean value)

If invalid values is allowed, the training pipeline will create a boolean feature that indicated whether the value is valid. Otherwise, the training pipeline will discard the input row from trainining data.

bool invalid_values_allowed = 3;

Parameter
NameDescription
valueboolean

The invalidValuesAllowed to set.

Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder

This builder for chaining.

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

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

setTimeFormat(String value)

public AutoMlTablesInputs.Transformation.TimestampTransformation.Builder setTimeFormat(String value)

The format in which that time field is expressed. The time_format must either be one of:

  • unix-seconds
  • unix-milliseconds
  • unix-microseconds
  • unix-nanoseconds (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in strftime syntax. If time_format is not set, then the default format is RFC 3339 date-time format, where time-offset = "Z" (e.g. 1985-04-12T23:20:50.52Z)

string time_format = 2;

Parameter
NameDescription
valueString

The timeFormat to set.

Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder

This builder for chaining.

setTimeFormatBytes(ByteString value)

public AutoMlTablesInputs.Transformation.TimestampTransformation.Builder setTimeFormatBytes(ByteString value)

The format in which that time field is expressed. The time_format must either be one of:

  • unix-seconds
  • unix-milliseconds
  • unix-microseconds
  • unix-nanoseconds (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in strftime syntax. If time_format is not set, then the default format is RFC 3339 date-time format, where time-offset = "Z" (e.g. 1985-04-12T23:20:50.52Z)

string time_format = 2;

Parameter
NameDescription
valueByteString

The bytes for timeFormat to set.

Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AutoMlTablesInputs.Transformation.TimestampTransformation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutoMlTablesInputs.Transformation.TimestampTransformation.Builder
Overrides