Class SamplingStrategy.RandomSampleConfig (3.33.0)

public static final class SamplingStrategy.RandomSampleConfig extends GeneratedMessageV3 implements SamplingStrategy.RandomSampleConfigOrBuilder

Requests are randomly selected.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SamplingStrategy.RandomSampleConfig

Static Fields

SAMPLE_RATE_FIELD_NUMBER

public static final int SAMPLE_RATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SamplingStrategy.RandomSampleConfig getDefaultInstance()
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig

getDescriptor()

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

newBuilder()

public static SamplingStrategy.RandomSampleConfig.Builder newBuilder()
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig.Builder

newBuilder(SamplingStrategy.RandomSampleConfig prototype)

public static SamplingStrategy.RandomSampleConfig.Builder newBuilder(SamplingStrategy.RandomSampleConfig prototype)
Parameter
NameDescription
prototypeSamplingStrategy.RandomSampleConfig
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig.Builder

parseDelimitedFrom(InputStream input)

public static SamplingStrategy.RandomSampleConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SamplingStrategy.RandomSampleConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SamplingStrategy.RandomSampleConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SamplingStrategy.RandomSampleConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SamplingStrategy.RandomSampleConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SamplingStrategy.RandomSampleConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SamplingStrategy.RandomSampleConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SamplingStrategy.RandomSampleConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SamplingStrategy.RandomSampleConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SamplingStrategy.RandomSampleConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SamplingStrategy.RandomSampleConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SamplingStrategy.RandomSampleConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SamplingStrategy.RandomSampleConfig> parser()
Returns
TypeDescription
Parser<RandomSampleConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<SamplingStrategy.RandomSampleConfig> getParserForType()
Returns
TypeDescription
Parser<RandomSampleConfig>
Overrides

getSampleRate()

public double getSampleRate()

Sample rate (0, 1]

double sample_rate = 1;

Returns
TypeDescription
double

The sampleRate.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SamplingStrategy.RandomSampleConfig.Builder newBuilderForType()
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SamplingStrategy.RandomSampleConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SamplingStrategy.RandomSampleConfig.Builder toBuilder()
Returns
TypeDescription
SamplingStrategy.RandomSampleConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException