Class ScoreMetrics.Builder

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

public static final class ScoreMetrics.Builder extends com.google.protobuf.GeneratedMessage.Builder<ScoreMetrics.Builder> implements ScoreMetricsOrBuilder
 Metrics related to scoring.
 
Protobuf type google.cloud.recaptchaenterprise.v1.ScoreMetrics
  • 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<ScoreMetrics.Builder>
    • internalGetMutableMapFieldReflection

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

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

      public ScoreMetrics.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<ScoreMetrics.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<ScoreMetrics.Builder>
    • getDefaultInstanceForType

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

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

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

      public ScoreMetrics.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<ScoreMetrics.Builder>
    • mergeFrom

      public ScoreMetrics.Builder mergeFrom(ScoreMetrics other)
    • isInitialized

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

      public ScoreMetrics.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<ScoreMetrics.Builder>
      Throws:
      IOException
    • hasOverallMetrics

      public boolean hasOverallMetrics()
       Aggregated score metrics for all traffic.
       
      .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;
      Specified by:
      hasOverallMetrics in interface ScoreMetricsOrBuilder
      Returns:
      Whether the overallMetrics field is set.
    • getOverallMetrics

      public ScoreDistribution getOverallMetrics()
       Aggregated score metrics for all traffic.
       
      .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;
      Specified by:
      getOverallMetrics in interface ScoreMetricsOrBuilder
      Returns:
      The overallMetrics.
    • setOverallMetrics

      public ScoreMetrics.Builder setOverallMetrics(ScoreDistribution value)
       Aggregated score metrics for all traffic.
       
      .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;
    • setOverallMetrics

      public ScoreMetrics.Builder setOverallMetrics(ScoreDistribution.Builder builderForValue)
       Aggregated score metrics for all traffic.
       
      .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;
    • mergeOverallMetrics

      public ScoreMetrics.Builder mergeOverallMetrics(ScoreDistribution value)
       Aggregated score metrics for all traffic.
       
      .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;
    • clearOverallMetrics

      public ScoreMetrics.Builder clearOverallMetrics()
       Aggregated score metrics for all traffic.
       
      .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;
    • getOverallMetricsBuilder

      public ScoreDistribution.Builder getOverallMetricsBuilder()
       Aggregated score metrics for all traffic.
       
      .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;
    • getOverallMetricsOrBuilder

      public ScoreDistributionOrBuilder getOverallMetricsOrBuilder()
       Aggregated score metrics for all traffic.
       
      .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;
      Specified by:
      getOverallMetricsOrBuilder in interface ScoreMetricsOrBuilder
    • getActionMetricsCount

      public int getActionMetricsCount()
      Description copied from interface: ScoreMetricsOrBuilder
       Action-based metrics. The map key is the action name which specified by the
       site owners at time of the "execute" client-side call.
       
      map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
      Specified by:
      getActionMetricsCount in interface ScoreMetricsOrBuilder
    • containsActionMetrics

      public boolean containsActionMetrics(String key)
       Action-based metrics. The map key is the action name which specified by the
       site owners at time of the "execute" client-side call.
       
      map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
      Specified by:
      containsActionMetrics in interface ScoreMetricsOrBuilder
    • getActionMetrics

      @Deprecated public Map<String,ScoreDistribution> getActionMetrics()
      Deprecated.
      Specified by:
      getActionMetrics in interface ScoreMetricsOrBuilder
    • getActionMetricsMap

      public Map<String,ScoreDistribution> getActionMetricsMap()
       Action-based metrics. The map key is the action name which specified by the
       site owners at time of the "execute" client-side call.
       
      map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
      Specified by:
      getActionMetricsMap in interface ScoreMetricsOrBuilder
    • getActionMetricsOrDefault

      public ScoreDistribution getActionMetricsOrDefault(String key, ScoreDistribution defaultValue)
       Action-based metrics. The map key is the action name which specified by the
       site owners at time of the "execute" client-side call.
       
      map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
      Specified by:
      getActionMetricsOrDefault in interface ScoreMetricsOrBuilder
    • getActionMetricsOrThrow

      public ScoreDistribution getActionMetricsOrThrow(String key)
       Action-based metrics. The map key is the action name which specified by the
       site owners at time of the "execute" client-side call.
       
      map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
      Specified by:
      getActionMetricsOrThrow in interface ScoreMetricsOrBuilder
    • clearActionMetrics

      public ScoreMetrics.Builder clearActionMetrics()
    • removeActionMetrics

      public ScoreMetrics.Builder removeActionMetrics(String key)
       Action-based metrics. The map key is the action name which specified by the
       site owners at time of the "execute" client-side call.
       
      map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
    • getMutableActionMetrics

      @Deprecated public Map<String,ScoreDistribution> getMutableActionMetrics()
      Deprecated.
      Use alternate mutation accessors instead.
    • putActionMetrics

      public ScoreMetrics.Builder putActionMetrics(String key, ScoreDistribution value)
       Action-based metrics. The map key is the action name which specified by the
       site owners at time of the "execute" client-side call.
       
      map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
    • putAllActionMetrics

      public ScoreMetrics.Builder putAllActionMetrics(Map<String,ScoreDistribution> values)
       Action-based metrics. The map key is the action name which specified by the
       site owners at time of the "execute" client-side call.
       
      map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
    • putActionMetricsBuilderIfAbsent

      public ScoreDistribution.Builder putActionMetricsBuilderIfAbsent(String key)
       Action-based metrics. The map key is the action name which specified by the
       site owners at time of the "execute" client-side call.
       
      map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;