Class Metrics.Builder

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

public static final class Metrics.Builder extends com.google.protobuf.GeneratedMessage.Builder<Metrics.Builder> implements MetricsOrBuilder
 Metrics for a single Key.
 
Protobuf type google.cloud.recaptchaenterprise.v1.Metrics
  • Method Details

    • getDescriptor

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

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

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

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

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

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

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

      public Metrics.Builder mergeFrom(Metrics other)
    • isInitialized

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

      public Metrics.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<Metrics.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Identifier. The name of the metrics, in the format
       `projects/{project}/keys/{key}/metrics`.
       
      string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface MetricsOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Identifier. The name of the metrics, in the format
       `projects/{project}/keys/{key}/metrics`.
       
      string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface MetricsOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Metrics.Builder setName(String value)
       Output only. Identifier. The name of the metrics, in the format
       `projects/{project}/keys/{key}/metrics`.
       
      string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Metrics.Builder clearName()
       Output only. Identifier. The name of the metrics, in the format
       `projects/{project}/keys/{key}/metrics`.
       
      string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Metrics.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Identifier. The name of the metrics, in the format
       `projects/{project}/keys/{key}/metrics`.
       
      string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasStartTime

      public boolean hasStartTime()
       Inclusive start time aligned to a day in the America/Los_Angeles (Pacific)
       timezone.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      hasStartTime in interface MetricsOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Inclusive start time aligned to a day in the America/Los_Angeles (Pacific)
       timezone.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      getStartTime in interface MetricsOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public Metrics.Builder setStartTime(com.google.protobuf.Timestamp value)
       Inclusive start time aligned to a day in the America/Los_Angeles (Pacific)
       timezone.
       
      .google.protobuf.Timestamp start_time = 1;
    • setStartTime

      public Metrics.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Inclusive start time aligned to a day in the America/Los_Angeles (Pacific)
       timezone.
       
      .google.protobuf.Timestamp start_time = 1;
    • mergeStartTime

      public Metrics.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Inclusive start time aligned to a day in the America/Los_Angeles (Pacific)
       timezone.
       
      .google.protobuf.Timestamp start_time = 1;
    • clearStartTime

      public Metrics.Builder clearStartTime()
       Inclusive start time aligned to a day in the America/Los_Angeles (Pacific)
       timezone.
       
      .google.protobuf.Timestamp start_time = 1;
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       Inclusive start time aligned to a day in the America/Los_Angeles (Pacific)
       timezone.
       
      .google.protobuf.Timestamp start_time = 1;
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Inclusive start time aligned to a day in the America/Los_Angeles (Pacific)
       timezone.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      getStartTimeOrBuilder in interface MetricsOrBuilder
    • getScoreMetricsList

      public List<ScoreMetrics> getScoreMetricsList()
       Metrics are 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;
      Specified by:
      getScoreMetricsList in interface MetricsOrBuilder
    • getScoreMetricsCount

      public int getScoreMetricsCount()
       Metrics are 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;
      Specified by:
      getScoreMetricsCount in interface MetricsOrBuilder
    • getScoreMetrics

      public ScoreMetrics getScoreMetrics(int index)
       Metrics are 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;
      Specified by:
      getScoreMetrics in interface MetricsOrBuilder
    • setScoreMetrics

      public Metrics.Builder setScoreMetrics(int index, ScoreMetrics value)
       Metrics are 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;
    • setScoreMetrics

      public Metrics.Builder setScoreMetrics(int index, ScoreMetrics.Builder builderForValue)
       Metrics are 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;
    • addScoreMetrics

      public Metrics.Builder addScoreMetrics(ScoreMetrics value)
       Metrics are 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;
    • addScoreMetrics

      public Metrics.Builder addScoreMetrics(int index, ScoreMetrics value)
       Metrics are 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;
    • addScoreMetrics

      public Metrics.Builder addScoreMetrics(ScoreMetrics.Builder builderForValue)
       Metrics are 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;
    • addScoreMetrics

      public Metrics.Builder addScoreMetrics(int index, ScoreMetrics.Builder builderForValue)
       Metrics are 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;
    • addAllScoreMetrics

      public Metrics.Builder addAllScoreMetrics(Iterable<? extends ScoreMetrics> values)
       Metrics are 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;
    • clearScoreMetrics

      public Metrics.Builder clearScoreMetrics()
       Metrics are 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;
    • removeScoreMetrics

      public Metrics.Builder removeScoreMetrics(int index)
       Metrics are 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;
    • getScoreMetricsBuilder

      public ScoreMetrics.Builder getScoreMetricsBuilder(int index)
       Metrics are 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;
    • getScoreMetricsOrBuilder

      public ScoreMetricsOrBuilder getScoreMetricsOrBuilder(int index)
       Metrics are 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;
      Specified by:
      getScoreMetricsOrBuilder in interface MetricsOrBuilder
    • getScoreMetricsOrBuilderList

      public List<? extends ScoreMetricsOrBuilder> getScoreMetricsOrBuilderList()
       Metrics are 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;
      Specified by:
      getScoreMetricsOrBuilderList in interface MetricsOrBuilder
    • addScoreMetricsBuilder

      public ScoreMetrics.Builder addScoreMetricsBuilder()
       Metrics are 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;
    • addScoreMetricsBuilder

      public ScoreMetrics.Builder addScoreMetricsBuilder(int index)
       Metrics are 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;
    • getScoreMetricsBuilderList

      public List<ScoreMetrics.Builder> getScoreMetricsBuilderList()
       Metrics are 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;
    • getChallengeMetricsList

      public List<ChallengeMetrics> getChallengeMetricsList()
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
      Specified by:
      getChallengeMetricsList in interface MetricsOrBuilder
    • getChallengeMetricsCount

      public int getChallengeMetricsCount()
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
      Specified by:
      getChallengeMetricsCount in interface MetricsOrBuilder
    • getChallengeMetrics

      public ChallengeMetrics getChallengeMetrics(int index)
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
      Specified by:
      getChallengeMetrics in interface MetricsOrBuilder
    • setChallengeMetrics

      public Metrics.Builder setChallengeMetrics(int index, ChallengeMetrics value)
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
    • setChallengeMetrics

      public Metrics.Builder setChallengeMetrics(int index, ChallengeMetrics.Builder builderForValue)
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
    • addChallengeMetrics

      public Metrics.Builder addChallengeMetrics(ChallengeMetrics value)
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
    • addChallengeMetrics

      public Metrics.Builder addChallengeMetrics(int index, ChallengeMetrics value)
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
    • addChallengeMetrics

      public Metrics.Builder addChallengeMetrics(ChallengeMetrics.Builder builderForValue)
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
    • addChallengeMetrics

      public Metrics.Builder addChallengeMetrics(int index, ChallengeMetrics.Builder builderForValue)
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
    • addAllChallengeMetrics

      public Metrics.Builder addAllChallengeMetrics(Iterable<? extends ChallengeMetrics> values)
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
    • clearChallengeMetrics

      public Metrics.Builder clearChallengeMetrics()
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
    • removeChallengeMetrics

      public Metrics.Builder removeChallengeMetrics(int index)
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
    • getChallengeMetricsBuilder

      public ChallengeMetrics.Builder getChallengeMetricsBuilder(int index)
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
    • getChallengeMetricsOrBuilder

      public ChallengeMetricsOrBuilder getChallengeMetricsOrBuilder(int index)
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
      Specified by:
      getChallengeMetricsOrBuilder in interface MetricsOrBuilder
    • getChallengeMetricsOrBuilderList

      public List<? extends ChallengeMetricsOrBuilder> getChallengeMetricsOrBuilderList()
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
      Specified by:
      getChallengeMetricsOrBuilderList in interface MetricsOrBuilder
    • addChallengeMetricsBuilder

      public ChallengeMetrics.Builder addChallengeMetricsBuilder()
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
    • addChallengeMetricsBuilder

      public ChallengeMetrics.Builder addChallengeMetricsBuilder(int index)
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;
    • getChallengeMetricsBuilderList

      public List<ChallengeMetrics.Builder> getChallengeMetricsBuilderList()
       Metrics are continuous and in order by dates, and in the granularity
       of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have
       challenge-based data.
       
      repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;