Class VeoHyperParameters.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VeoHyperParameters.Builder>
com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.Builder
All Implemented Interfaces:
VeoHyperParametersOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VeoHyperParameters

public static final class VeoHyperParameters.Builder extends com.google.protobuf.GeneratedMessage.Builder<VeoHyperParameters.Builder> implements VeoHyperParametersOrBuilder
 Hyperparameters for Veo.
 
Protobuf type google.cloud.aiplatform.v1beta1.VeoHyperParameters
  • 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<VeoHyperParameters.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<VeoHyperParameters.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<VeoHyperParameters.Builder>
    • getDefaultInstanceForType

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

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

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

      public VeoHyperParameters.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<VeoHyperParameters.Builder>
    • mergeFrom

    • isInitialized

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

      public VeoHyperParameters.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<VeoHyperParameters.Builder>
      Throws:
      IOException
    • getEpochCount

      public long getEpochCount()
       Optional. Number of complete passes the model makes over the entire
       training dataset during training.
       
      int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEpochCount in interface VeoHyperParametersOrBuilder
      Returns:
      The epochCount.
    • setEpochCount

      public VeoHyperParameters.Builder setEpochCount(long value)
       Optional. Number of complete passes the model makes over the entire
       training dataset during training.
       
      int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The epochCount to set.
      Returns:
      This builder for chaining.
    • clearEpochCount

      public VeoHyperParameters.Builder clearEpochCount()
       Optional. Number of complete passes the model makes over the entire
       training dataset during training.
       
      int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getLearningRateMultiplier

      public double getLearningRateMultiplier()
       Optional. Multiplier for adjusting the default learning rate.
       
      double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLearningRateMultiplier in interface VeoHyperParametersOrBuilder
      Returns:
      The learningRateMultiplier.
    • setLearningRateMultiplier

      public VeoHyperParameters.Builder setLearningRateMultiplier(double value)
       Optional. Multiplier for adjusting the default learning rate.
       
      double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The learningRateMultiplier to set.
      Returns:
      This builder for chaining.
    • clearLearningRateMultiplier

      public VeoHyperParameters.Builder clearLearningRateMultiplier()
       Optional. Multiplier for adjusting the default learning rate.
       
      double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getTuningTaskValue

      public int getTuningTaskValue()
       Optional. The tuning task. Either I2V or T2V.
       
      .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask tuning_task = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTuningTaskValue in interface VeoHyperParametersOrBuilder
      Returns:
      The enum numeric value on the wire for tuningTask.
    • setTuningTaskValue

      public VeoHyperParameters.Builder setTuningTaskValue(int value)
       Optional. The tuning task. Either I2V or T2V.
       
      .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask tuning_task = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for tuningTask to set.
      Returns:
      This builder for chaining.
    • getTuningTask

      public VeoHyperParameters.TuningTask getTuningTask()
       Optional. The tuning task. Either I2V or T2V.
       
      .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask tuning_task = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTuningTask in interface VeoHyperParametersOrBuilder
      Returns:
      The tuningTask.
    • setTuningTask

       Optional. The tuning task. Either I2V or T2V.
       
      .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask tuning_task = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The tuningTask to set.
      Returns:
      This builder for chaining.
    • clearTuningTask

      public VeoHyperParameters.Builder clearTuningTask()
       Optional. The tuning task. Either I2V or T2V.
       
      .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask tuning_task = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasVeoDataMixtureRatio

      public boolean hasVeoDataMixtureRatio()
       Optional. The ratio of Google internal dataset to use in the training
       mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
       dataset and 80% of user dataset will be used for training. If not set, the
       default value is 0.1.
       
      optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasVeoDataMixtureRatio in interface VeoHyperParametersOrBuilder
      Returns:
      Whether the veoDataMixtureRatio field is set.
    • getVeoDataMixtureRatio

      public double getVeoDataMixtureRatio()
       Optional. The ratio of Google internal dataset to use in the training
       mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
       dataset and 80% of user dataset will be used for training. If not set, the
       default value is 0.1.
       
      optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVeoDataMixtureRatio in interface VeoHyperParametersOrBuilder
      Returns:
      The veoDataMixtureRatio.
    • setVeoDataMixtureRatio

      public VeoHyperParameters.Builder setVeoDataMixtureRatio(double value)
       Optional. The ratio of Google internal dataset to use in the training
       mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
       dataset and 80% of user dataset will be used for training. If not set, the
       default value is 0.1.
       
      optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The veoDataMixtureRatio to set.
      Returns:
      This builder for chaining.
    • clearVeoDataMixtureRatio

      public VeoHyperParameters.Builder clearVeoDataMixtureRatio()
       Optional. The ratio of Google internal dataset to use in the training
       mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
       dataset and 80% of user dataset will be used for training. If not set, the
       default value is 0.1.
       
      optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasTuningSpeed

      public boolean hasTuningSpeed()
       The speed of the tuning job. Only supported for Veo 3.0 models.
       
      optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5;
      Specified by:
      hasTuningSpeed in interface VeoHyperParametersOrBuilder
      Returns:
      Whether the tuningSpeed field is set.
    • getTuningSpeedValue

      public int getTuningSpeedValue()
       The speed of the tuning job. Only supported for Veo 3.0 models.
       
      optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5;
      Specified by:
      getTuningSpeedValue in interface VeoHyperParametersOrBuilder
      Returns:
      The enum numeric value on the wire for tuningSpeed.
    • setTuningSpeedValue

      public VeoHyperParameters.Builder setTuningSpeedValue(int value)
       The speed of the tuning job. Only supported for Veo 3.0 models.
       
      optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5;
      Parameters:
      value - The enum numeric value on the wire for tuningSpeed to set.
      Returns:
      This builder for chaining.
    • getTuningSpeed

      public VeoHyperParameters.TuningSpeed getTuningSpeed()
       The speed of the tuning job. Only supported for Veo 3.0 models.
       
      optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5;
      Specified by:
      getTuningSpeed in interface VeoHyperParametersOrBuilder
      Returns:
      The tuningSpeed.
    • setTuningSpeed

       The speed of the tuning job. Only supported for Veo 3.0 models.
       
      optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5;
      Parameters:
      value - The tuningSpeed to set.
      Returns:
      This builder for chaining.
    • clearTuningSpeed

      public VeoHyperParameters.Builder clearTuningSpeed()
       The speed of the tuning job. Only supported for Veo 3.0 models.
       
      optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5;
      Returns:
      This builder for chaining.
    • getAdapterSizeValue

      public int getAdapterSizeValue()
       Optional. The adapter size for LoRA tuning.
       
      .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdapterSizeValue in interface VeoHyperParametersOrBuilder
      Returns:
      The enum numeric value on the wire for adapterSize.
    • setAdapterSizeValue

      public VeoHyperParameters.Builder setAdapterSizeValue(int value)
       Optional. The adapter size for LoRA tuning.
       
      .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for adapterSize to set.
      Returns:
      This builder for chaining.
    • getAdapterSize

      public VeoHyperParameters.AdapterSize getAdapterSize()
       Optional. The adapter size for LoRA tuning.
       
      .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdapterSize in interface VeoHyperParametersOrBuilder
      Returns:
      The adapterSize.
    • setAdapterSize

       Optional. The adapter size for LoRA tuning.
       
      .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The adapterSize to set.
      Returns:
      This builder for chaining.
    • clearAdapterSize

      public VeoHyperParameters.Builder clearAdapterSize()
       Optional. The adapter size for LoRA tuning.
       
      .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.