Class DataSamplingConfig (0.66.0)

public final class DataSamplingConfig extends GeneratedMessageV3 implements DataSamplingConfigOrBuilder

Configuration options for sampling elements.

Protobuf type google.dataflow.v1beta3.DataSamplingConfig

Static Fields

BEHAVIORS_FIELD_NUMBER

public static final int BEHAVIORS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DataSamplingConfig getDefaultInstance()
Returns
Type Description
DataSamplingConfig

getDescriptor()

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

newBuilder()

public static DataSamplingConfig.Builder newBuilder()
Returns
Type Description
DataSamplingConfig.Builder

newBuilder(DataSamplingConfig prototype)

public static DataSamplingConfig.Builder newBuilder(DataSamplingConfig prototype)
Parameter
Name Description
prototype DataSamplingConfig
Returns
Type Description
DataSamplingConfig.Builder

parseDelimitedFrom(InputStream input)

public static DataSamplingConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataSamplingConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataSamplingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSamplingConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DataSamplingConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DataSamplingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DataSamplingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSamplingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DataSamplingConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DataSamplingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DataSamplingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSamplingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DataSamplingConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DataSamplingConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DataSamplingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSamplingConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DataSamplingConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataSamplingConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataSamplingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSamplingConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DataSamplingConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DataSamplingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DataSamplingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSamplingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DataSamplingConfig> parser()
Returns
Type Description
Parser<DataSamplingConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

getParserForType()

public Parser<DataSamplingConfig> getParserForType()
Returns
Type Description
Parser<DataSamplingConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DataSamplingConfig.Builder newBuilderForType()
Returns
Type Description
DataSamplingConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DataSamplingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DataSamplingConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DataSamplingConfig.Builder toBuilder()
Returns
Type Description
DataSamplingConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException