Class SamplingStrategy.Builder (3.46.0)

public static final class SamplingStrategy.Builder extends GeneratedMessageV3.Builder<SamplingStrategy.Builder> implements SamplingStrategyOrBuilder

Sampling Strategy for logging, can be for both training and prediction dataset.

Protobuf type google.cloud.aiplatform.v1.SamplingStrategy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SamplingStrategy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SamplingStrategy.Builder
Overrides

build()

public SamplingStrategy build()
Returns
Type Description
SamplingStrategy

buildPartial()

public SamplingStrategy buildPartial()
Returns
Type Description
SamplingStrategy

clear()

public SamplingStrategy.Builder clear()
Returns
Type Description
SamplingStrategy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SamplingStrategy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SamplingStrategy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SamplingStrategy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SamplingStrategy.Builder
Overrides

clearRandomSampleConfig()

public SamplingStrategy.Builder clearRandomSampleConfig()

Random sample config. Will support more sampling strategies later.

.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;

Returns
Type Description
SamplingStrategy.Builder

clone()

public SamplingStrategy.Builder clone()
Returns
Type Description
SamplingStrategy.Builder
Overrides

getDefaultInstanceForType()

public SamplingStrategy getDefaultInstanceForType()
Returns
Type Description
SamplingStrategy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRandomSampleConfig()

public SamplingStrategy.RandomSampleConfig getRandomSampleConfig()

Random sample config. Will support more sampling strategies later.

.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;

Returns
Type Description
SamplingStrategy.RandomSampleConfig

The randomSampleConfig.

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;

Returns
Type Description
SamplingStrategy.RandomSampleConfig.Builder

getRandomSampleConfigOrBuilder()

public SamplingStrategy.RandomSampleConfigOrBuilder getRandomSampleConfigOrBuilder()

Random sample config. Will support more sampling strategies later.

.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;

Returns
Type Description
SamplingStrategy.RandomSampleConfigOrBuilder

hasRandomSampleConfig()

public boolean hasRandomSampleConfig()

Random sample config. Will support more sampling strategies later.

.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;

Returns
Type Description
boolean

Whether the randomSampleConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SamplingStrategy other)

public SamplingStrategy.Builder mergeFrom(SamplingStrategy other)
Parameter
Name Description
other SamplingStrategy
Returns
Type Description
SamplingStrategy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SamplingStrategy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SamplingStrategy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SamplingStrategy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SamplingStrategy.Builder
Overrides

mergeRandomSampleConfig(SamplingStrategy.RandomSampleConfig value)

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;

Parameter
Name Description
value SamplingStrategy.RandomSampleConfig
Returns
Type Description
SamplingStrategy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SamplingStrategy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SamplingStrategy.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SamplingStrategy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SamplingStrategy.Builder
Overrides

setRandomSampleConfig(SamplingStrategy.RandomSampleConfig value)

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;

Parameter
Name Description
value SamplingStrategy.RandomSampleConfig
Returns
Type Description
SamplingStrategy.Builder

setRandomSampleConfig(SamplingStrategy.RandomSampleConfig.Builder builderForValue)

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;

Parameter
Name Description
builderForValue SamplingStrategy.RandomSampleConfig.Builder
Returns
Type Description
SamplingStrategy.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SamplingStrategy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SamplingStrategy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SamplingStrategy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SamplingStrategy.Builder
Overrides