Class SamplingStrategy.Builder (3.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SamplingStrategy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SamplingStrategy.Builder
Overrides

build()

public SamplingStrategy build()
Returns
TypeDescription
SamplingStrategy

buildPartial()

public SamplingStrategy buildPartial()
Returns
TypeDescription
SamplingStrategy

clear()

public SamplingStrategy.Builder clear()
Returns
TypeDescription
SamplingStrategy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SamplingStrategy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SamplingStrategy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SamplingStrategy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SamplingStrategy.Builder

clone()

public SamplingStrategy.Builder clone()
Returns
TypeDescription
SamplingStrategy.Builder
Overrides

getDefaultInstanceForType()

public SamplingStrategy getDefaultInstanceForType()
Returns
TypeDescription
SamplingStrategy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the randomSampleConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SamplingStrategy other)

public SamplingStrategy.Builder mergeFrom(SamplingStrategy other)
Parameter
NameDescription
otherSamplingStrategy
Returns
TypeDescription
SamplingStrategy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SamplingStrategy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SamplingStrategy.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SamplingStrategy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSamplingStrategy.RandomSampleConfig
Returns
TypeDescription
SamplingStrategy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SamplingStrategy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SamplingStrategy.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SamplingStrategy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueSamplingStrategy.RandomSampleConfig
Returns
TypeDescription
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
NameDescription
builderForValueSamplingStrategy.RandomSampleConfig.Builder
Returns
TypeDescription
SamplingStrategy.Builder

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

public SamplingStrategy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SamplingStrategy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SamplingStrategy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SamplingStrategy.Builder
Overrides