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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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
Overrides

build()

public SamplingStrategy.RandomSampleConfig build()

buildPartial()

public SamplingStrategy.RandomSampleConfig buildPartial()

clear()

public SamplingStrategy.RandomSampleConfig.Builder clear()
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

getDefaultInstanceForType()

public SamplingStrategy.RandomSampleConfig getDefaultInstanceForType()

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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