Class TimestampSplit.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TimestampSplit.Builder>
com.google.cloud.aiplatform.v1.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.GeneratedMessage.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 type google.cloud.aiplatform.v1.TimestampSplit
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TimestampSplit.Builder>
    • clear

      public TimestampSplit.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TimestampSplit.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TimestampSplit.Builder>
    • getDefaultInstanceForType

      public TimestampSplit getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TimestampSplit build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TimestampSplit buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TimestampSplit.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TimestampSplit.Builder>
    • mergeFrom

      public TimestampSplit.Builder mergeFrom(TimestampSplit other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TimestampSplit.Builder>
    • mergeFrom

      public TimestampSplit.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getTrainingFraction in interface TimestampSplitOrBuilder
      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:
      getValidationFraction in interface TimestampSplitOrBuilder
      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:
      getTestFraction in interface TimestampSplitOrBuilder
      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:
      getKey in interface TimestampSplitOrBuilder
      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:
      getKeyBytes in interface TimestampSplitOrBuilder
      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.