Class 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.GeneratedMessageV3.Builder<Metrics.Builder>
    implements MetricsOrBuilder
     Metrics for a single Key.
     
    Protobuf type google.cloud.recaptchaenterprise.v1.Metrics
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Metrics.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Metrics.Builder>
      • setField

        public Metrics.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                        Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Metrics.Builder>
      • clearField

        public Metrics.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Metrics.Builder>
      • clearOneof

        public Metrics.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Metrics.Builder>
      • setRepeatedField

        public Metrics.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                int index,
                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Metrics.Builder>
      • addRepeatedField

        public Metrics.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Metrics.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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. The name of the metrics, in the format
         "projects/{project}/keys/{key}/metrics".
         
        string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface MetricsOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.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];
        Specified by:
        getNameBytes in interface MetricsOrBuilder
        Returns:
        The bytes for name.
      • setName

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

        public Metrics.Builder clearName()
         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:
        This builder for chaining.
      • setNameBytes

        public Metrics.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The name of the metrics, in the format
         "projects/{project}/keys/{key}/metrics".
         
        string name = 4 [(.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 (UTC).
         
        .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 (UTC).
         
        .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 (UTC).
         
        .google.protobuf.Timestamp start_time = 1;
      • setStartTime

        public Metrics.Builder setStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Inclusive start time aligned to a day (UTC).
         
        .google.protobuf.Timestamp start_time = 1;
      • mergeStartTime

        public Metrics.Builder mergeStartTime​(com.google.protobuf.Timestamp value)
         Inclusive start time aligned to a day (UTC).
         
        .google.protobuf.Timestamp start_time = 1;
      • clearStartTime

        public Metrics.Builder clearStartTime()
         Inclusive start time aligned to a day (UTC).
         
        .google.protobuf.Timestamp start_time = 1;
      • getStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
         Inclusive start time aligned to a day (UTC).
         
        .google.protobuf.Timestamp start_time = 1;
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         Inclusive start time aligned to a day (UTC).
         
        .google.protobuf.Timestamp start_time = 1;
        Specified by:
        getStartTimeOrBuilder in interface MetricsOrBuilder
      • 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;
        Specified by:
        getScoreMetricsList in interface MetricsOrBuilder
      • 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;
        Specified by:
        getScoreMetricsCount in interface MetricsOrBuilder
      • getScoreMetrics

        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;
        Specified by:
        getScoreMetrics in interface MetricsOrBuilder
      • setScoreMetrics

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

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

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

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

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

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

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

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

        public Metrics.Builder removeScoreMetrics​(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;
      • getScoreMetricsBuilder

        public ScoreMetrics.Builder getScoreMetricsBuilder​(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;
      • getScoreMetricsOrBuilder

        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;
        Specified by:
        getScoreMetricsOrBuilder in interface MetricsOrBuilder
      • 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;
        Specified by:
        getScoreMetricsOrBuilderList in interface MetricsOrBuilder
      • addScoreMetricsBuilder

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

        public ScoreMetrics.Builder addScoreMetricsBuilder​(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;
      • getScoreMetricsBuilderList

        public List<ScoreMetrics.Builder> getScoreMetricsBuilderList()
         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;
      • 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;
        Specified by:
        getChallengeMetricsList in interface MetricsOrBuilder
      • 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;
        Specified by:
        getChallengeMetricsCount in interface MetricsOrBuilder
      • getChallengeMetrics

        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;
        Specified by:
        getChallengeMetrics in interface MetricsOrBuilder
      • setChallengeMetrics

        public Metrics.Builder setChallengeMetrics​(int index,
                                                   ChallengeMetrics value)
         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;
      • setChallengeMetrics

        public Metrics.Builder setChallengeMetrics​(int index,
                                                   ChallengeMetrics.Builder builderForValue)
         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;
      • addChallengeMetrics

        public Metrics.Builder addChallengeMetrics​(ChallengeMetrics value)
         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;
      • addChallengeMetrics

        public Metrics.Builder addChallengeMetrics​(int index,
                                                   ChallengeMetrics value)
         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;
      • addChallengeMetrics

        public Metrics.Builder addChallengeMetrics​(ChallengeMetrics.Builder builderForValue)
         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;
      • addChallengeMetrics

        public Metrics.Builder addChallengeMetrics​(int index,
                                                   ChallengeMetrics.Builder builderForValue)
         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;
      • addAllChallengeMetrics

        public Metrics.Builder addAllChallengeMetrics​(Iterable<? extends ChallengeMetrics> values)
         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;
      • clearChallengeMetrics

        public Metrics.Builder clearChallengeMetrics()
         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;
      • removeChallengeMetrics

        public Metrics.Builder removeChallengeMetrics​(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;
      • getChallengeMetricsBuilder

        public ChallengeMetrics.Builder getChallengeMetricsBuilder​(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;
      • getChallengeMetricsOrBuilder

        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;
        Specified by:
        getChallengeMetricsOrBuilder in interface MetricsOrBuilder
      • 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;
        Specified by:
        getChallengeMetricsOrBuilderList in interface MetricsOrBuilder
      • addChallengeMetricsBuilder

        public ChallengeMetrics.Builder addChallengeMetricsBuilder()
         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;
      • addChallengeMetricsBuilder

        public ChallengeMetrics.Builder addChallengeMetricsBuilder​(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;
      • getChallengeMetricsBuilderList

        public List<ChallengeMetrics.Builder> getChallengeMetricsBuilderList()
         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;
      • setUnknownFields

        public final Metrics.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Metrics.Builder>
      • mergeUnknownFields

        public final Metrics.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Metrics.Builder>