Class SamplingStrategy.Builder

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

public static final class SamplingStrategy.Builder extends com.google.protobuf.GeneratedMessage.Builder<SamplingStrategy.Builder> implements SamplingStrategyOrBuilder
 Sampling Strategy for logging, can be for both training and prediction
 dataset.
 
Protobuf type google.cloud.aiplatform.v1.SamplingStrategy
  • 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<SamplingStrategy.Builder>
    • clear

      public SamplingStrategy.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<SamplingStrategy.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<SamplingStrategy.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SamplingStrategy.Builder mergeFrom(SamplingStrategy other)
    • isInitialized

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

      public SamplingStrategy.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<SamplingStrategy.Builder>
      Throws:
      IOException
    • hasRandomSampleConfig

      public boolean hasRandomSampleConfig()
       Random sample config. Will support more sampling strategies later.
       
      .google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;
      Specified by:
      hasRandomSampleConfig in interface SamplingStrategyOrBuilder
      Returns:
      Whether the randomSampleConfig field is set.
    • getRandomSampleConfig

      public SamplingStrategy.RandomSampleConfig getRandomSampleConfig()
       Random sample config. Will support more sampling strategies later.
       
      .google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;
      Specified by:
      getRandomSampleConfig in interface SamplingStrategyOrBuilder
      Returns:
      The randomSampleConfig.
    • setRandomSampleConfig

      public SamplingStrategy.Builder setRandomSampleConfig(SamplingStrategy.RandomSampleConfig value)
       Random sample config. Will support more sampling strategies later.
       
      .google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;
    • setRandomSampleConfig

      public SamplingStrategy.Builder setRandomSampleConfig(SamplingStrategy.RandomSampleConfig.Builder builderForValue)
       Random sample config. Will support more sampling strategies later.
       
      .google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;
    • mergeRandomSampleConfig

      public SamplingStrategy.Builder mergeRandomSampleConfig(SamplingStrategy.RandomSampleConfig value)
       Random sample config. Will support more sampling strategies later.
       
      .google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;
    • clearRandomSampleConfig

      public SamplingStrategy.Builder clearRandomSampleConfig()
       Random sample config. Will support more sampling strategies later.
       
      .google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;
    • getRandomSampleConfigBuilder

      public SamplingStrategy.RandomSampleConfig.Builder getRandomSampleConfigBuilder()
       Random sample config. Will support more sampling strategies later.
       
      .google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;
    • getRandomSampleConfigOrBuilder

      public SamplingStrategy.RandomSampleConfigOrBuilder getRandomSampleConfigOrBuilder()
       Random sample config. Will support more sampling strategies later.
       
      .google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;
      Specified by:
      getRandomSampleConfigOrBuilder in interface SamplingStrategyOrBuilder