Class ScoreDistribution.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ScoreDistribution.Builder>
com.google.recaptchaenterprise.v1.ScoreDistribution.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ScoreDistributionOrBuilder, Cloneable
Enclosing class:
ScoreDistribution

public static final class ScoreDistribution.Builder extends com.google.protobuf.GeneratedMessage.Builder<ScoreDistribution.Builder> implements ScoreDistributionOrBuilder
 Score distribution.
 
Protobuf type google.cloud.recaptchaenterprise.v1.ScoreDistribution
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ScoreDistribution.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ScoreDistribution.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ScoreDistribution.Builder>
    • clear

      public ScoreDistribution.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ScoreDistribution.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ScoreDistribution.Builder>
    • getDefaultInstanceForType

      public ScoreDistribution getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ScoreDistribution build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ScoreDistribution buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ScoreDistribution.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ScoreDistribution.Builder>
    • mergeFrom

      public ScoreDistribution.Builder mergeFrom(ScoreDistribution other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ScoreDistribution.Builder>
    • mergeFrom

      public ScoreDistribution.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ScoreDistribution.Builder>
      Throws:
      IOException
    • getScoreBucketsCount

      public int getScoreBucketsCount()
      Description copied from interface: ScoreDistributionOrBuilder
       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;
      Specified by:
      getScoreBucketsCount in interface ScoreDistributionOrBuilder
    • containsScoreBuckets

      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;
      Specified by:
      containsScoreBuckets in interface ScoreDistributionOrBuilder
    • getScoreBuckets

      @Deprecated public Map<Integer,Long> getScoreBuckets()
      Deprecated.
      Specified by:
      getScoreBuckets in interface ScoreDistributionOrBuilder
    • 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;
      Specified by:
      getScoreBucketsMap in interface ScoreDistributionOrBuilder
    • getScoreBucketsOrDefault

      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;
      Specified by:
      getScoreBucketsOrDefault in interface ScoreDistributionOrBuilder
    • getScoreBucketsOrThrow

      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;
      Specified by:
      getScoreBucketsOrThrow in interface ScoreDistributionOrBuilder
    • clearScoreBuckets

      public ScoreDistribution.Builder clearScoreBuckets()
    • removeScoreBuckets

      public ScoreDistribution.Builder removeScoreBuckets(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;
    • getMutableScoreBuckets

      @Deprecated public Map<Integer,Long> getMutableScoreBuckets()
      Deprecated.
      Use alternate mutation accessors instead.
    • putScoreBuckets

      public ScoreDistribution.Builder putScoreBuckets(int key, long value)
       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;
    • putAllScoreBuckets

      public ScoreDistribution.Builder putAllScoreBuckets(Map<Integer,Long> values)
       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;