Class TimestampSplit.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TimestampSplit.Builder>
-
- com.google.cloud.aiplatform.v1beta1.TimestampSplit.Builder
-
- All Implemented Interfaces:
TimestampSplitOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TimestampSplit
public static final class TimestampSplit.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TimestampSplit.Builder> implements TimestampSplitOrBuilder
Assigns input data to training, validation, and test sets based on a provided timestamps. The youngest data pieces are assigned to training set, next to validation set, and the oldest to the test set. Supported only for tabular Datasets.
Protobuf typegoogle.cloud.aiplatform.v1beta1.TimestampSplit
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TimestampSplit.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TimestampSplitbuild()TimestampSplitbuildPartial()TimestampSplit.Builderclear()TimestampSplit.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TimestampSplit.BuilderclearKey()Required.TimestampSplit.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TimestampSplit.BuilderclearTestFraction()The fraction of the input data that is to be used to evaluate the Model.TimestampSplit.BuilderclearTrainingFraction()The fraction of the input data that is to be used to train the Model.TimestampSplit.BuilderclearValidationFraction()The fraction of the input data that is to be used to validate the Model.TimestampSplit.Builderclone()TimestampSplitgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetKey()Required.com.google.protobuf.ByteStringgetKeyBytes()Required.doublegetTestFraction()The fraction of the input data that is to be used to evaluate the Model.doublegetTrainingFraction()The fraction of the input data that is to be used to train the Model.doublegetValidationFraction()The fraction of the input data that is to be used to validate the Model.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TimestampSplit.BuildermergeFrom(TimestampSplit other)TimestampSplit.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TimestampSplit.BuildermergeFrom(com.google.protobuf.Message other)TimestampSplit.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TimestampSplit.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TimestampSplit.BuildersetKey(String value)Required.TimestampSplit.BuildersetKeyBytes(com.google.protobuf.ByteString value)Required.TimestampSplit.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TimestampSplit.BuildersetTestFraction(double value)The fraction of the input data that is to be used to evaluate the Model.TimestampSplit.BuildersetTrainingFraction(double value)The fraction of the input data that is to be used to train the Model.TimestampSplit.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TimestampSplit.BuildersetValidationFraction(double value)The fraction of the input data that is to be used to validate the Model.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampSplit.Builder>
-
clear
public TimestampSplit.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampSplit.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampSplit.Builder>
-
getDefaultInstanceForType
public TimestampSplit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TimestampSplit build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TimestampSplit buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TimestampSplit.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampSplit.Builder>
-
setField
public TimestampSplit.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampSplit.Builder>
-
clearField
public TimestampSplit.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampSplit.Builder>
-
clearOneof
public TimestampSplit.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampSplit.Builder>
-
setRepeatedField
public TimestampSplit.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampSplit.Builder>
-
addRepeatedField
public TimestampSplit.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampSplit.Builder>
-
mergeFrom
public TimestampSplit.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TimestampSplit.Builder>
-
mergeFrom
public TimestampSplit.Builder mergeFrom(TimestampSplit other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampSplit.Builder>
-
mergeFrom
public TimestampSplit.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TimestampSplit.Builder>- Throws:
IOException
-
getTrainingFraction
public double getTrainingFraction()
The fraction of the input data that is to be used to train the Model.
double training_fraction = 1;- Specified by:
getTrainingFractionin interfaceTimestampSplitOrBuilder- Returns:
- The trainingFraction.
-
setTrainingFraction
public TimestampSplit.Builder setTrainingFraction(double value)
The fraction of the input data that is to be used to train the Model.
double training_fraction = 1;- Parameters:
value- The trainingFraction to set.- Returns:
- This builder for chaining.
-
clearTrainingFraction
public TimestampSplit.Builder clearTrainingFraction()
The fraction of the input data that is to be used to train the Model.
double training_fraction = 1;- Returns:
- This builder for chaining.
-
getValidationFraction
public double getValidationFraction()
The fraction of the input data that is to be used to validate the Model.
double validation_fraction = 2;- Specified by:
getValidationFractionin interfaceTimestampSplitOrBuilder- Returns:
- The validationFraction.
-
setValidationFraction
public TimestampSplit.Builder setValidationFraction(double value)
The fraction of the input data that is to be used to validate the Model.
double validation_fraction = 2;- Parameters:
value- The validationFraction to set.- Returns:
- This builder for chaining.
-
clearValidationFraction
public TimestampSplit.Builder clearValidationFraction()
The fraction of the input data that is to be used to validate the Model.
double validation_fraction = 2;- Returns:
- This builder for chaining.
-
getTestFraction
public double getTestFraction()
The fraction of the input data that is to be used to evaluate the Model.
double test_fraction = 3;- Specified by:
getTestFractionin interfaceTimestampSplitOrBuilder- Returns:
- The testFraction.
-
setTestFraction
public TimestampSplit.Builder setTestFraction(double value)
The fraction of the input data that is to be used to evaluate the Model.
double test_fraction = 3;- Parameters:
value- The testFraction to set.- Returns:
- This builder for chaining.
-
clearTestFraction
public TimestampSplit.Builder clearTestFraction()
The fraction of the input data that is to be used to evaluate the Model.
double test_fraction = 3;- Returns:
- This builder for chaining.
-
getKey
public String getKey()
Required. The key is a name of one of the Dataset's data columns. The values of the key (the values in the column) must be in RFC 3339 `date-time` format, where `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z). If for a piece of data the key is not present or has an invalid value, that piece is ignored by the pipeline.
string key = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getKeyin interfaceTimestampSplitOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()
Required. The key is a name of one of the Dataset's data columns. The values of the key (the values in the column) must be in RFC 3339 `date-time` format, where `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z). If for a piece of data the key is not present or has an invalid value, that piece is ignored by the pipeline.
string key = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getKeyBytesin interfaceTimestampSplitOrBuilder- Returns:
- The bytes for key.
-
setKey
public TimestampSplit.Builder setKey(String value)
Required. The key is a name of one of the Dataset's data columns. The values of the key (the values in the column) must be in RFC 3339 `date-time` format, where `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z). If for a piece of data the key is not present or has an invalid value, that piece is ignored by the pipeline.
string key = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
public TimestampSplit.Builder clearKey()
Required. The key is a name of one of the Dataset's data columns. The values of the key (the values in the column) must be in RFC 3339 `date-time` format, where `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z). If for a piece of data the key is not present or has an invalid value, that piece is ignored by the pipeline.
string key = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setKeyBytes
public TimestampSplit.Builder setKeyBytes(com.google.protobuf.ByteString value)
Required. The key is a name of one of the Dataset's data columns. The values of the key (the values in the column) must be in RFC 3339 `date-time` format, where `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z). If for a piece of data the key is not present or has an invalid value, that piece is ignored by the pipeline.
string key = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final TimestampSplit.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampSplit.Builder>
-
mergeUnknownFields
public final TimestampSplit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampSplit.Builder>
-
-