Class SamplingStrategy.RandomSampleConfig.Builder (3.56.0)

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

Requests are randomly selected.

Protobuf type google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SamplingStrategy.RandomSampleConfig build()
Returns
Type Description
SamplingStrategy.RandomSampleConfig

buildPartial()

public SamplingStrategy.RandomSampleConfig buildPartial()
Returns
Type Description
SamplingStrategy.RandomSampleConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSampleRate()

public SamplingStrategy.RandomSampleConfig.Builder clearSampleRate()

Sample rate (0, 1]

double sample_rate = 1;

Returns
Type Description
SamplingStrategy.RandomSampleConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SamplingStrategy.RandomSampleConfig getDefaultInstanceForType()
Returns
Type Description
SamplingStrategy.RandomSampleConfig

getDescriptorForType()

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

getSampleRate()

public double getSampleRate()

Sample rate (0, 1]

double sample_rate = 1;

Returns
Type Description
double

The sampleRate.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SamplingStrategy.RandomSampleConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSampleRate(double value)

public SamplingStrategy.RandomSampleConfig.Builder setSampleRate(double value)

Sample rate (0, 1]

double sample_rate = 1;

Parameter
Name Description
value double

The sampleRate to set.

Returns
Type Description
SamplingStrategy.RandomSampleConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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