Class EndpointLoadMetricStats.Builder

    • Field Detail

      • bitField0_

        private int bitField0_
      • metricName_

        private java.lang.Object metricName_
      • numRequestsFinishedWithMetric_

        private long numRequestsFinishedWithMetric_
      • totalMetricValue_

        private double totalMetricValue_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

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

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

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

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

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

        public EndpointLoadMetricStats.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws java.io.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<EndpointLoadMetricStats.Builder>
        Throws:
        java.io.IOException
      • getMetricNameBytes

        public com.google.protobuf.ByteString getMetricNameBytes()
         Name of the metric; may be empty.
         
        string metric_name = 1;
        Specified by:
        getMetricNameBytes in interface EndpointLoadMetricStatsOrBuilder
        Returns:
        The bytes for metricName.
      • setMetricName

        public EndpointLoadMetricStats.Builder setMetricName​(java.lang.String value)
         Name of the metric; may be empty.
         
        string metric_name = 1;
        Parameters:
        value - The metricName to set.
        Returns:
        This builder for chaining.
      • clearMetricName

        public EndpointLoadMetricStats.Builder clearMetricName()
         Name of the metric; may be empty.
         
        string metric_name = 1;
        Returns:
        This builder for chaining.
      • setMetricNameBytes

        public EndpointLoadMetricStats.Builder setMetricNameBytes​(com.google.protobuf.ByteString value)
         Name of the metric; may be empty.
         
        string metric_name = 1;
        Parameters:
        value - The bytes for metricName to set.
        Returns:
        This builder for chaining.
      • getNumRequestsFinishedWithMetric

        public long getNumRequestsFinishedWithMetric()
         Number of calls that finished and included this metric.
         
        uint64 num_requests_finished_with_metric = 2;
        Specified by:
        getNumRequestsFinishedWithMetric in interface EndpointLoadMetricStatsOrBuilder
        Returns:
        The numRequestsFinishedWithMetric.
      • setNumRequestsFinishedWithMetric

        public EndpointLoadMetricStats.Builder setNumRequestsFinishedWithMetric​(long value)
         Number of calls that finished and included this metric.
         
        uint64 num_requests_finished_with_metric = 2;
        Parameters:
        value - The numRequestsFinishedWithMetric to set.
        Returns:
        This builder for chaining.
      • clearNumRequestsFinishedWithMetric

        public EndpointLoadMetricStats.Builder clearNumRequestsFinishedWithMetric()
         Number of calls that finished and included this metric.
         
        uint64 num_requests_finished_with_metric = 2;
        Returns:
        This builder for chaining.
      • getTotalMetricValue

        public double getTotalMetricValue()
         Sum of metric values across all calls that finished with this metric for
         load_reporting_interval.
         
        double total_metric_value = 3;
        Specified by:
        getTotalMetricValue in interface EndpointLoadMetricStatsOrBuilder
        Returns:
        The totalMetricValue.
      • setTotalMetricValue

        public EndpointLoadMetricStats.Builder setTotalMetricValue​(double value)
         Sum of metric values across all calls that finished with this metric for
         load_reporting_interval.
         
        double total_metric_value = 3;
        Parameters:
        value - The totalMetricValue to set.
        Returns:
        This builder for chaining.
      • clearTotalMetricValue

        public EndpointLoadMetricStats.Builder clearTotalMetricValue()
         Sum of metric values across all calls that finished with this metric for
         load_reporting_interval.
         
        double total_metric_value = 3;
        Returns:
        This builder for chaining.