Class DataSamplingConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataSamplingConfig.Builder>
com.google.dataflow.v1beta3.DataSamplingConfig.Builder
All Implemented Interfaces:
DataSamplingConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DataSamplingConfig

public static final class DataSamplingConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataSamplingConfig.Builder> implements DataSamplingConfigOrBuilder
 Configuration options for sampling elements.
 
Protobuf type google.dataflow.v1beta3.DataSamplingConfig
  • 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<DataSamplingConfig.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<DataSamplingConfig.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<DataSamplingConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public DataSamplingConfig.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<DataSamplingConfig.Builder>
      Throws:
      IOException
    • getBehaviorsList

      public List<DataSamplingConfig.DataSamplingBehavior> getBehaviorsList()
       List of given sampling behaviors to enable. For example, specifying
       behaviors = [ALWAYS_ON] samples in-flight elements but does not sample
       exceptions. Can be used to specify multiple behaviors like,
       behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and
       exception sampling.
      
       If DISABLED is in the list, then sampling will be disabled and ignore the
       other given behaviors.
      
       Ordering does not matter.
       
      repeated .google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior behaviors = 1;
      Specified by:
      getBehaviorsList in interface DataSamplingConfigOrBuilder
      Returns:
      A list containing the behaviors.
    • getBehaviorsCount

      public int getBehaviorsCount()
       List of given sampling behaviors to enable. For example, specifying
       behaviors = [ALWAYS_ON] samples in-flight elements but does not sample
       exceptions. Can be used to specify multiple behaviors like,
       behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and
       exception sampling.
      
       If DISABLED is in the list, then sampling will be disabled and ignore the
       other given behaviors.
      
       Ordering does not matter.
       
      repeated .google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior behaviors = 1;
      Specified by:
      getBehaviorsCount in interface DataSamplingConfigOrBuilder
      Returns:
      The count of behaviors.
    • getBehaviors

      public DataSamplingConfig.DataSamplingBehavior getBehaviors(int index)
       List of given sampling behaviors to enable. For example, specifying
       behaviors = [ALWAYS_ON] samples in-flight elements but does not sample
       exceptions. Can be used to specify multiple behaviors like,
       behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and
       exception sampling.
      
       If DISABLED is in the list, then sampling will be disabled and ignore the
       other given behaviors.
      
       Ordering does not matter.
       
      repeated .google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior behaviors = 1;
      Specified by:
      getBehaviors in interface DataSamplingConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The behaviors at the given index.
    • setBehaviors

       List of given sampling behaviors to enable. For example, specifying
       behaviors = [ALWAYS_ON] samples in-flight elements but does not sample
       exceptions. Can be used to specify multiple behaviors like,
       behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and
       exception sampling.
      
       If DISABLED is in the list, then sampling will be disabled and ignore the
       other given behaviors.
      
       Ordering does not matter.
       
      repeated .google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior behaviors = 1;
      Parameters:
      index - The index to set the value at.
      value - The behaviors to set.
      Returns:
      This builder for chaining.
    • addBehaviors

       List of given sampling behaviors to enable. For example, specifying
       behaviors = [ALWAYS_ON] samples in-flight elements but does not sample
       exceptions. Can be used to specify multiple behaviors like,
       behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and
       exception sampling.
      
       If DISABLED is in the list, then sampling will be disabled and ignore the
       other given behaviors.
      
       Ordering does not matter.
       
      repeated .google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior behaviors = 1;
      Parameters:
      value - The behaviors to add.
      Returns:
      This builder for chaining.
    • addAllBehaviors

       List of given sampling behaviors to enable. For example, specifying
       behaviors = [ALWAYS_ON] samples in-flight elements but does not sample
       exceptions. Can be used to specify multiple behaviors like,
       behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and
       exception sampling.
      
       If DISABLED is in the list, then sampling will be disabled and ignore the
       other given behaviors.
      
       Ordering does not matter.
       
      repeated .google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior behaviors = 1;
      Parameters:
      values - The behaviors to add.
      Returns:
      This builder for chaining.
    • clearBehaviors

      public DataSamplingConfig.Builder clearBehaviors()
       List of given sampling behaviors to enable. For example, specifying
       behaviors = [ALWAYS_ON] samples in-flight elements but does not sample
       exceptions. Can be used to specify multiple behaviors like,
       behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and
       exception sampling.
      
       If DISABLED is in the list, then sampling will be disabled and ignore the
       other given behaviors.
      
       Ordering does not matter.
       
      repeated .google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior behaviors = 1;
      Returns:
      This builder for chaining.
    • getBehaviorsValueList

      public List<Integer> getBehaviorsValueList()
       List of given sampling behaviors to enable. For example, specifying
       behaviors = [ALWAYS_ON] samples in-flight elements but does not sample
       exceptions. Can be used to specify multiple behaviors like,
       behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and
       exception sampling.
      
       If DISABLED is in the list, then sampling will be disabled and ignore the
       other given behaviors.
      
       Ordering does not matter.
       
      repeated .google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior behaviors = 1;
      Specified by:
      getBehaviorsValueList in interface DataSamplingConfigOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for behaviors.
    • getBehaviorsValue

      public int getBehaviorsValue(int index)
       List of given sampling behaviors to enable. For example, specifying
       behaviors = [ALWAYS_ON] samples in-flight elements but does not sample
       exceptions. Can be used to specify multiple behaviors like,
       behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and
       exception sampling.
      
       If DISABLED is in the list, then sampling will be disabled and ignore the
       other given behaviors.
      
       Ordering does not matter.
       
      repeated .google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior behaviors = 1;
      Specified by:
      getBehaviorsValue in interface DataSamplingConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of behaviors at the given index.
    • setBehaviorsValue

      public DataSamplingConfig.Builder setBehaviorsValue(int index, int value)
       List of given sampling behaviors to enable. For example, specifying
       behaviors = [ALWAYS_ON] samples in-flight elements but does not sample
       exceptions. Can be used to specify multiple behaviors like,
       behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and
       exception sampling.
      
       If DISABLED is in the list, then sampling will be disabled and ignore the
       other given behaviors.
      
       Ordering does not matter.
       
      repeated .google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior behaviors = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for behaviors to set.
      Returns:
      This builder for chaining.
    • addBehaviorsValue

      public DataSamplingConfig.Builder addBehaviorsValue(int value)
       List of given sampling behaviors to enable. For example, specifying
       behaviors = [ALWAYS_ON] samples in-flight elements but does not sample
       exceptions. Can be used to specify multiple behaviors like,
       behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and
       exception sampling.
      
       If DISABLED is in the list, then sampling will be disabled and ignore the
       other given behaviors.
      
       Ordering does not matter.
       
      repeated .google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior behaviors = 1;
      Parameters:
      value - The enum numeric value on the wire for behaviors to add.
      Returns:
      This builder for chaining.
    • addAllBehaviorsValue

      public DataSamplingConfig.Builder addAllBehaviorsValue(Iterable<Integer> values)
       List of given sampling behaviors to enable. For example, specifying
       behaviors = [ALWAYS_ON] samples in-flight elements but does not sample
       exceptions. Can be used to specify multiple behaviors like,
       behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and
       exception sampling.
      
       If DISABLED is in the list, then sampling will be disabled and ignore the
       other given behaviors.
      
       Ordering does not matter.
       
      repeated .google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior behaviors = 1;
      Parameters:
      values - The enum numeric values on the wire for behaviors to add.
      Returns:
      This builder for chaining.