Class SamplingStrategy.RandomSampleConfig.Builder (3.38.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.v1.SamplingStrategy.RandomSampleConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SamplingStrategy.RandomSampleConfig build()
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig

buildPartial()

public SamplingStrategy.RandomSampleConfig buildPartial()
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SamplingStrategy.RandomSampleConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig.Builder
Overrides

clearSampleRate()

public SamplingStrategy.RandomSampleConfig.Builder clearSampleRate()

Sample rate (0, 1]

double sample_rate = 1;

Returns
TypeDescription
SamplingStrategy.RandomSampleConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SamplingStrategy.RandomSampleConfig getDefaultInstanceForType()
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSampleRate()

public double getSampleRate()

Sample rate (0, 1]

double sample_rate = 1;

Returns
TypeDescription
double

The sampleRate.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SamplingStrategy.RandomSampleConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SamplingStrategy.RandomSampleConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setSampleRate(double value)

public SamplingStrategy.RandomSampleConfig.Builder setSampleRate(double value)

Sample rate (0, 1]

double sample_rate = 1;

Parameter
NameDescription
valuedouble

The sampleRate to set.

Returns
TypeDescription
SamplingStrategy.RandomSampleConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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