Class AnalyzerDefinition (0.1.6)

AnalyzerDefinition(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Defines an Analyzer.

An analyzer processes data from its input streams using the logic defined in the Operator that it represents. Of course, it produces data for the output streams declared in the Operator.

Attributes

Name Description
analyzer str
The name of this analyzer. Tentatively a-z][a-z0-9]*(_[a-z0-9]+)*.
operator str
The name of the operator that this analyzer runs. Must match the name of a supported operator.
inputs MutableSequence[google.cloud.visionai_v1alpha1.types.AnalyzerDefinition.StreamInput]
Input streams.
attrs MutableMapping[str, google.cloud.visionai_v1alpha1.types.AttributeValue]
The attribute values that this analyzer applies to the operator. Supply a mapping between the attribute names and the actual value you wish to apply. If an attribute name is omitted, then it will take a preconfigured default value.
debug_options google.cloud.visionai_v1alpha1.types.AnalyzerDefinition.DebugOptions
Debug options.

Classes

AttrsEntry

AttrsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

DebugOptions

DebugOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Options available for debugging purposes only.

StreamInput

StreamInput(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The inputs to this analyzer.

We accept input name references of the following form: :

Example:

Suppose you had an operator named "SomeOp" that has 2 output arguments, the first of which is named "foo" and the second of which is named "bar", and an operator named "MyOp" that accepts 2 inputs.

Also suppose that there is an analyzer named "some-analyzer" that is running "SomeOp" and another analyzer named "my-analyzer" running "MyOp".

To indicate that "my-analyzer" is to consume "some-analyzer"'s "foo" output as its first input and "some-analyzer"'s "bar" output as its second input, you can set this field to the following: input = ["some-analyzer:foo", "some-analyzer:bar"]