Class ScoreDistribution (3.16.0)

public final class ScoreDistribution extends GeneratedMessageV3 implements ScoreDistributionOrBuilder

Score distribution.

Protobuf type google.cloud.recaptchaenterprise.v1.ScoreDistribution

Static Fields

SCORE_BUCKETS_FIELD_NUMBER

public static final int SCORE_BUCKETS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ScoreDistribution getDefaultInstance()
Returns
TypeDescription
ScoreDistribution

getDescriptor()

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

newBuilder()

public static ScoreDistribution.Builder newBuilder()
Returns
TypeDescription
ScoreDistribution.Builder

newBuilder(ScoreDistribution prototype)

public static ScoreDistribution.Builder newBuilder(ScoreDistribution prototype)
Parameter
NameDescription
prototypeScoreDistribution
Returns
TypeDescription
ScoreDistribution.Builder

parseDelimitedFrom(InputStream input)

public static ScoreDistribution parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ScoreDistribution
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ScoreDistribution parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ScoreDistribution
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ScoreDistribution parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ScoreDistribution
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ScoreDistribution parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ScoreDistribution
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ScoreDistribution parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ScoreDistribution
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ScoreDistribution> parser()
Returns
TypeDescription
Parser<ScoreDistribution>

Methods

containsScoreBuckets(int key)

public boolean containsScoreBuckets(int key)

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

Parameter
NameDescription
keyint
Returns
TypeDescription
boolean

equals(Object obj)

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

getDefaultInstanceForType()

public ScoreDistribution getDefaultInstanceForType()
Returns
TypeDescription
ScoreDistribution

getParserForType()

public Parser<ScoreDistribution> getParserForType()
Returns
TypeDescription
Parser<ScoreDistribution>
Overrides

getScoreBuckets()

public Map<Integer,Long> getScoreBuckets()

Use #getScoreBucketsMap() instead.

Returns
TypeDescription
Map<Integer,java.lang.Long>

getScoreBucketsCount()

public int getScoreBucketsCount()

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

Returns
TypeDescription
int

getScoreBucketsMap()

public Map<Integer,Long> getScoreBucketsMap()

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

Returns
TypeDescription
Map<Integer,java.lang.Long>

getScoreBucketsOrDefault(int key, long defaultValue)

public long getScoreBucketsOrDefault(int key, long defaultValue)

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

Parameters
NameDescription
keyint
defaultValuelong
Returns
TypeDescription
long

getScoreBucketsOrThrow(int key)

public long getScoreBucketsOrThrow(int key)

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

Parameter
NameDescription
keyint
Returns
TypeDescription
long

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

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ScoreDistribution.Builder newBuilderForType()
Returns
TypeDescription
ScoreDistribution.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ScoreDistribution.Builder toBuilder()
Returns
TypeDescription
ScoreDistribution.Builder

writeTo(CodedOutputStream output)

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