Class DataSamplingConfig.Builder (0.67.0)

public static final class DataSamplingConfig.Builder extends GeneratedMessageV3.Builder<DataSamplingConfig.Builder> implements DataSamplingConfigOrBuilder

Configuration options for sampling elements.

Protobuf type google.dataflow.v1beta3.DataSamplingConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllBehaviors(Iterable<? extends DataSamplingConfig.DataSamplingBehavior> values)

public DataSamplingConfig.Builder addAllBehaviors(Iterable<? extends DataSamplingConfig.DataSamplingBehavior> 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;

Parameter
Name Description
values Iterable<? extends com.google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior>

The behaviors to add.

Returns
Type Description
DataSamplingConfig.Builder

This builder for chaining.

addAllBehaviorsValue(Iterable<Integer> values)

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;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for behaviors to add.

Returns
Type Description
DataSamplingConfig.Builder

This builder for chaining.

addBehaviors(DataSamplingConfig.DataSamplingBehavior value)

public DataSamplingConfig.Builder addBehaviors(DataSamplingConfig.DataSamplingBehavior 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;

Parameter
Name Description
value DataSamplingConfig.DataSamplingBehavior

The behaviors to add.

Returns
Type Description
DataSamplingConfig.Builder

This builder for chaining.

addBehaviorsValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for behaviors to add.

Returns
Type Description
DataSamplingConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataSamplingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSamplingConfig.Builder
Overrides

build()

public DataSamplingConfig build()
Returns
Type Description
DataSamplingConfig

buildPartial()

public DataSamplingConfig buildPartial()
Returns
Type Description
DataSamplingConfig

clear()

public DataSamplingConfig.Builder clear()
Returns
Type Description
DataSamplingConfig.Builder
Overrides

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
Type Description
DataSamplingConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataSamplingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataSamplingConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DataSamplingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataSamplingConfig.Builder
Overrides

clone()

public DataSamplingConfig.Builder clone()
Returns
Type Description
DataSamplingConfig.Builder
Overrides

getBehaviors(int index)

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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
DataSamplingConfig.DataSamplingBehavior

The behaviors at the given index.

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;

Returns
Type Description
int

The count of behaviors.

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;

Returns
Type Description
List<DataSamplingBehavior>

A list containing the behaviors.

getBehaviorsValue(int index)

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;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of behaviors at the given index.

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;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for behaviors.

getDefaultInstanceForType()

public DataSamplingConfig getDefaultInstanceForType()
Returns
Type Description
DataSamplingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataSamplingConfig other)

public DataSamplingConfig.Builder mergeFrom(DataSamplingConfig other)
Parameter
Name Description
other DataSamplingConfig
Returns
Type Description
DataSamplingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataSamplingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSamplingConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataSamplingConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataSamplingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataSamplingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSamplingConfig.Builder
Overrides

setBehaviors(int index, DataSamplingConfig.DataSamplingBehavior value)

public DataSamplingConfig.Builder setBehaviors(int index, DataSamplingConfig.DataSamplingBehavior 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
Name Description
index int

The index to set the value at.

value DataSamplingConfig.DataSamplingBehavior

The behaviors to set.

Returns
Type Description
DataSamplingConfig.Builder

This builder for chaining.

setBehaviorsValue(int index, int value)

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
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for behaviors to set.

Returns
Type Description
DataSamplingConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataSamplingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSamplingConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataSamplingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataSamplingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DataSamplingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSamplingConfig.Builder
Overrides