Class Metrics (3.1.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 3.1.0keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   final   class  Metrics   extends   GeneratedMessageV3   implements   MetricsOrBuilder  
   
   Metrics for a single Key.
 Protobuf type google.cloud.recaptchaenterprise.v1.Metrics
 
  
  
  
  Static Fields
   
  CHALLENGE_METRICS_FIELD_NUMBER 
  
    
public   static   final   int   CHALLENGE_METRICS_FIELD_NUMBER  
   
  Field Value 
  
  NAME_FIELD_NUMBER 
  
    
public   static   final   int   NAME_FIELD_NUMBER  
   
  Field Value 
  
  SCORE_METRICS_FIELD_NUMBER 
  
    
public   static   final   int   SCORE_METRICS_FIELD_NUMBER  
   
  Field Value 
  
  START_TIME_FIELD_NUMBER 
  
    
public   static   final   int   START_TIME_FIELD_NUMBER  
   
  Field Value 
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   Metrics   getDefaultInstance ()  
   
  Returns 
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
   
  newBuilder() 
  
    
public   static   Metrics . Builder   newBuilder ()  
   
  Returns 
  
   
  newBuilder(Metrics prototype) 
  
    
public   static   Metrics . Builder   newBuilder ( Metrics   prototype )  
   
  Parameter 
  
  Returns 
  
   
  
  
    
public   static   Metrics   parseDelimitedFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Metrics   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data) 
  
    
public   static   Metrics   parseFrom ( byte []   data )  
   
  Parameter 
  
    
      
        Name  
        Description  
       
      
        data  
        byte [] 
       
     
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Metrics   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data) 
  
    
public   static   Metrics   parseFrom ( ByteString   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Metrics   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Metrics   parseFrom ( CodedInputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Metrics   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Metrics   parseFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Metrics   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   Metrics   parseFrom ( ByteBuffer   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Metrics   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parser() 
  
    
public   static   Parser<Metrics>   parser ()  
   
  Returns 
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  getChallengeMetrics(int index) 
  
    
public   ChallengeMetrics   getChallengeMetrics ( int   index )  
   
   Metrics will be continuous and in order by dates, and in the granularity
 of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
 challenge-based data.
 repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
 
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index  
        int  
       
     
  
  Returns 
  
   
  getChallengeMetricsCount() 
  
    
public   int   getChallengeMetricsCount ()  
   
   Metrics will be continuous and in order by dates, and in the granularity
 of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
 challenge-based data.
 repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
 
 
  Returns 
  
   
  getChallengeMetricsList() 
  
    
public   List<ChallengeMetrics>   getChallengeMetricsList ()  
   
   Metrics will be continuous and in order by dates, and in the granularity
 of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
 challenge-based data.
 repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
 
 
  Returns 
  
   
  getChallengeMetricsOrBuilder(int index) 
  
    
public   ChallengeMetricsOrBuilder   getChallengeMetricsOrBuilder ( int   index )  
   
   Metrics will be continuous and in order by dates, and in the granularity
 of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
 challenge-based data.
 repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
 
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index  
        int  
       
     
  
  Returns 
  
   
  getChallengeMetricsOrBuilderList() 
  
    
public   List <?   extends   ChallengeMetricsOrBuilder >  getChallengeMetricsOrBuilderList ()  
   
   Metrics will be continuous and in order by dates, and in the granularity
 of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
 challenge-based data.
 repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
 
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        List <? extends com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder > 
         
       
     
  
   
  getDefaultInstanceForType() 
  
    
public   Metrics   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getName() 
  
   Output only. The name of the metrics, in the format
 "projects/{project}/keys/{key}/metrics".
 string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        String  
        The name.
 
       
     
  
   
  getNameBytes() 
  
    
public   ByteString   getNameBytes ()  
   
   Output only. The name of the metrics, in the format
 "projects/{project}/keys/{key}/metrics".
 string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Returns 
  
   
  getParserForType() 
  
    
public   Parser<Metrics>   getParserForType ()  
   
  Returns 
  
  Overrides 
  
   
  getScoreMetrics(int index) 
  
    
public   ScoreMetrics   getScoreMetrics ( int   index )  
   
   Metrics will be continuous and in order by dates, and in the granularity
 of day. All Key types should have score-based data.
 repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index  
        int  
       
     
  
  Returns 
  
   
  getScoreMetricsCount() 
  
    
public   int   getScoreMetricsCount ()  
   
   Metrics will be continuous and in order by dates, and in the granularity
 of day. All Key types should have score-based data.
 repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
 
  Returns 
  
   
  getScoreMetricsList() 
  
    
public   List<ScoreMetrics>   getScoreMetricsList ()  
   
   Metrics will be continuous and in order by dates, and in the granularity
 of day. All Key types should have score-based data.
 repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
 
  Returns 
  
   
  getScoreMetricsOrBuilder(int index) 
  
    
public   ScoreMetricsOrBuilder   getScoreMetricsOrBuilder ( int   index )  
   
   Metrics will be continuous and in order by dates, and in the granularity
 of day. All Key types should have score-based data.
 repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index  
        int  
       
     
  
  Returns 
  
   
  getScoreMetricsOrBuilderList() 
  
    
public   List <?   extends   ScoreMetricsOrBuilder >  getScoreMetricsOrBuilderList ()  
   
   Metrics will be continuous and in order by dates, and in the granularity
 of day. All Key types should have score-based data.
 repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        List <? extends com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder > 
         
       
     
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  Returns 
  
  Overrides 
  
   
  getStartTime() 
  
    
public   Timestamp   getStartTime ()  
   
   Inclusive start time aligned to a day (UTC).
 .google.protobuf.Timestamp start_time = 1;
 
  Returns 
  
   
  getStartTimeOrBuilder() 
  
    
public   TimestampOrBuilder   getStartTimeOrBuilder ()  
   
   Inclusive start time aligned to a day (UTC).
 .google.protobuf.Timestamp start_time = 1;
 
  Returns 
  
   
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
   
  Returns 
  
  Overrides 
  
   
  hasStartTime() 
  
    
public   boolean   hasStartTime ()  
   
   Inclusive start time aligned to a day (UTC).
 .google.protobuf.Timestamp start_time = 1;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the startTime field is set.
 
       
     
  
   
  hashCode() 
  
  Returns 
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   Metrics . Builder   newBuilderForType ()  
   
  Returns 
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Metrics . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  toBuilder() 
  
    
public   Metrics . Builder   toBuilder ()  
   
  Returns 
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  Parameter 
  
  Overrides 
  
  Exceptions 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]