Class DistributionCut.Builder (3.14.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.14.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   static   final   class  DistributionCut . Builder   extends   GeneratedMessageV3 . Builder<DistributionCut . Builder >  implements   DistributionCutOrBuilder  
   A DistributionCut defines a TimeSeries and thresholds used for measuring
 good service and total service. The TimeSeries must have ValueType =
 DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The
 computed good_service will be the estimated count of values in the
 Distribution that fall within the specified min and max.
 Protobuf type google.monitoring.v3.DistributionCut
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   DistributionCut . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   DistributionCut   build ()  
  
  buildPartial() 
  
    
public   DistributionCut   buildPartial ()  
  
  clear() 
  
    
public   DistributionCut . Builder   clear ()  
  
  Overrides 
  
  clearDistributionFilter() 
  
    
public   DistributionCut . Builder   clearDistributionFilter ()  
   A monitoring filter 
 specifying a TimeSeries aggregating values. Must have ValueType =
 DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
 string distribution_filter = 4;
clearField(Descriptors.FieldDescriptor field) 
  
    
public   DistributionCut . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   DistributionCut . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearRange() 
  
    
public   DistributionCut . Builder   clearRange ()  
   Range of values considered "good." For a one-sided range, set one bound to
 an infinite value.
 .google.monitoring.v3.Range range = 5;
clone() 
  
    
public   DistributionCut . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   DistributionCut   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getDistributionFilter() 
  
    
public   String   getDistributionFilter ()  
   A monitoring filter 
 specifying a TimeSeries aggregating values. Must have ValueType =
 DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
 string distribution_filter = 4;
    
      
        Returns  
      
        Type Description  
      
        String The distributionFilter.
 
     
  
  getDistributionFilterBytes() 
  
    
public   ByteString   getDistributionFilterBytes ()  
   A monitoring filter 
 specifying a TimeSeries aggregating values. Must have ValueType =
 DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
 string distribution_filter = 4;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for distributionFilter.
 
     
  
  getRange() 
  
   Range of values considered "good." For a one-sided range, set one bound to
 an infinite value.
 .google.monitoring.v3.Range range = 5;
    
      
        Returns  
      
        Type Description  
      
        Range The range.
 
     
  
  getRangeBuilder() 
  
    
public   Range . Builder   getRangeBuilder ()  
   Range of values considered "good." For a one-sided range, set one bound to
 an infinite value.
 .google.monitoring.v3.Range range = 5;
getRangeOrBuilder() 
  
    
public   RangeOrBuilder   getRangeOrBuilder ()  
   Range of values considered "good." For a one-sided range, set one bound to
 an infinite value.
 .google.monitoring.v3.Range range = 5;
hasRange() 
  
    
public   boolean   hasRange ()  
   Range of values considered "good." For a one-sided range, set one bound to
 an infinite value.
 .google.monitoring.v3.Range range = 5;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the range field is set.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(DistributionCut other) 
  
    
public   DistributionCut . Builder   mergeFrom ( DistributionCut   other )  
  
  
  
    
public   DistributionCut . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   DistributionCut . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeRange(Range value) 
  
    
public   DistributionCut . Builder   mergeRange ( Range   value )  
   Range of values considered "good." For a one-sided range, set one bound to
 an infinite value.
 .google.monitoring.v3.Range range = 5;
    
      
        Parameter  
      
        Name Description  
      
        valueRange  
     
  
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   DistributionCut . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setDistributionFilter(String value) 
  
    
public   DistributionCut . Builder   setDistributionFilter ( String   value )  
   A monitoring filter 
 specifying a TimeSeries aggregating values. Must have ValueType =
 DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
 string distribution_filter = 4;
    
      
        Parameter  
      
        Name Description  
      
        valueString The distributionFilter to set.
 
     
  
  
  setDistributionFilterBytes(ByteString value) 
  
    
public   DistributionCut . Builder   setDistributionFilterBytes ( ByteString   value )  
   A monitoring filter 
 specifying a TimeSeries aggregating values. Must have ValueType =
 DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
 string distribution_filter = 4;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for distributionFilter to set.
 
     
  
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   DistributionCut . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setRange(Range value) 
  
    
public   DistributionCut . Builder   setRange ( Range   value )  
   Range of values considered "good." For a one-sided range, set one bound to
 an infinite value.
 .google.monitoring.v3.Range range = 5;
    
      
        Parameter  
      
        Name Description  
      
        valueRange  
     
  
  
  setRange(Range.Builder builderForValue) 
  
    
public   DistributionCut . Builder   setRange ( Range . Builder   builderForValue )  
   Range of values considered "good." For a one-sided range, set one bound to
 an infinite value.
 .google.monitoring.v3.Range range = 5;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   DistributionCut . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   DistributionCut . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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-29 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-29 UTC."],[],[]]