Class StudySpec.TransferLearningConfig.Builder

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

public static final class StudySpec.TransferLearningConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<StudySpec.TransferLearningConfig.Builder> implements StudySpec.TransferLearningConfigOrBuilder
 This contains flag for manually disabling transfer learning for a study.
 The names of prior studies being used for transfer learning (if any)
 are also listed here.
 
Protobuf type google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig
  • 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<StudySpec.TransferLearningConfig.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<StudySpec.TransferLearningConfig.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<StudySpec.TransferLearningConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public StudySpec.TransferLearningConfig.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<StudySpec.TransferLearningConfig.Builder>
      Throws:
      IOException
    • getDisableTransferLearning

      public boolean getDisableTransferLearning()
       Flag to to manually prevent vizier from using transfer learning on a
       new study. Otherwise, vizier will automatically determine whether or not
       to use transfer learning.
       
      bool disable_transfer_learning = 1;
      Specified by:
      getDisableTransferLearning in interface StudySpec.TransferLearningConfigOrBuilder
      Returns:
      The disableTransferLearning.
    • setDisableTransferLearning

      public StudySpec.TransferLearningConfig.Builder setDisableTransferLearning(boolean value)
       Flag to to manually prevent vizier from using transfer learning on a
       new study. Otherwise, vizier will automatically determine whether or not
       to use transfer learning.
       
      bool disable_transfer_learning = 1;
      Parameters:
      value - The disableTransferLearning to set.
      Returns:
      This builder for chaining.
    • clearDisableTransferLearning

      public StudySpec.TransferLearningConfig.Builder clearDisableTransferLearning()
       Flag to to manually prevent vizier from using transfer learning on a
       new study. Otherwise, vizier will automatically determine whether or not
       to use transfer learning.
       
      bool disable_transfer_learning = 1;
      Returns:
      This builder for chaining.
    • getPriorStudyNamesList

      public com.google.protobuf.ProtocolStringList getPriorStudyNamesList()
       Output only. Names of previously completed studies
       
      repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPriorStudyNamesList in interface StudySpec.TransferLearningConfigOrBuilder
      Returns:
      A list containing the priorStudyNames.
    • getPriorStudyNamesCount

      public int getPriorStudyNamesCount()
       Output only. Names of previously completed studies
       
      repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPriorStudyNamesCount in interface StudySpec.TransferLearningConfigOrBuilder
      Returns:
      The count of priorStudyNames.
    • getPriorStudyNames

      public String getPriorStudyNames(int index)
       Output only. Names of previously completed studies
       
      repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPriorStudyNames in interface StudySpec.TransferLearningConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The priorStudyNames at the given index.
    • getPriorStudyNamesBytes

      public com.google.protobuf.ByteString getPriorStudyNamesBytes(int index)
       Output only. Names of previously completed studies
       
      repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPriorStudyNamesBytes in interface StudySpec.TransferLearningConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the priorStudyNames at the given index.
    • setPriorStudyNames

      public StudySpec.TransferLearningConfig.Builder setPriorStudyNames(int index, String value)
       Output only. Names of previously completed studies
       
      repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The priorStudyNames to set.
      Returns:
      This builder for chaining.
    • addPriorStudyNames

      public StudySpec.TransferLearningConfig.Builder addPriorStudyNames(String value)
       Output only. Names of previously completed studies
       
      repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The priorStudyNames to add.
      Returns:
      This builder for chaining.
    • addAllPriorStudyNames

      public StudySpec.TransferLearningConfig.Builder addAllPriorStudyNames(Iterable<String> values)
       Output only. Names of previously completed studies
       
      repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The priorStudyNames to add.
      Returns:
      This builder for chaining.
    • clearPriorStudyNames

      public StudySpec.TransferLearningConfig.Builder clearPriorStudyNames()
       Output only. Names of previously completed studies
       
      repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addPriorStudyNamesBytes

      public StudySpec.TransferLearningConfig.Builder addPriorStudyNamesBytes(com.google.protobuf.ByteString value)
       Output only. Names of previously completed studies
       
      repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the priorStudyNames to add.
      Returns:
      This builder for chaining.