Class AnalyzerDefinition (0.14.1)

public final class AnalyzerDefinition extends GeneratedMessageV3 implements AnalyzerDefinitionOrBuilder

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.

Protobuf type google.events.cloud.visionai.v1.AnalyzerDefinition

Static Fields

ANALYZER_FIELD_NUMBER

public static final int ANALYZER_FIELD_NUMBER
Field Value
TypeDescription
int

ATTRS_FIELD_NUMBER

public static final int ATTRS_FIELD_NUMBER
Field Value
TypeDescription
int

DEBUG_OPTIONS_FIELD_NUMBER

public static final int DEBUG_OPTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

INPUTS_FIELD_NUMBER

public static final int INPUTS_FIELD_NUMBER
Field Value
TypeDescription
int

OPERATOR_FIELD_NUMBER

public static final int OPERATOR_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AnalyzerDefinition getDefaultInstance()
Returns
TypeDescription
AnalyzerDefinition

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AnalyzerDefinition.Builder newBuilder()
Returns
TypeDescription
AnalyzerDefinition.Builder

newBuilder(AnalyzerDefinition prototype)

public static AnalyzerDefinition.Builder newBuilder(AnalyzerDefinition prototype)
Parameter
NameDescription
prototypeAnalyzerDefinition
Returns
TypeDescription
AnalyzerDefinition.Builder

parseDelimitedFrom(InputStream input)

public static AnalyzerDefinition parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnalyzerDefinition
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzerDefinition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzerDefinition
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AnalyzerDefinition parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AnalyzerDefinition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AnalyzerDefinition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzerDefinition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AnalyzerDefinition parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AnalyzerDefinition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AnalyzerDefinition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzerDefinition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AnalyzerDefinition parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AnalyzerDefinition
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzerDefinition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzerDefinition
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AnalyzerDefinition parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnalyzerDefinition
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzerDefinition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzerDefinition
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AnalyzerDefinition parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AnalyzerDefinition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AnalyzerDefinition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzerDefinition
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AnalyzerDefinition> parser()
Returns
TypeDescription
Parser<AnalyzerDefinition>

Methods

containsAttrs(String key)

public boolean containsAttrs(String key)

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.

map<string, .google.events.cloud.visionai.v1.AttributeValue> attrs = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAnalyzer()

public String getAnalyzer()

The name of this analyzer. Tentatively a-z(_[a-z0-9]+).

string analyzer = 1;

Returns
TypeDescription
String

The analyzer.

getAnalyzerBytes()

public ByteString getAnalyzerBytes()

The name of this analyzer. Tentatively a-z(_[a-z0-9]+).

string analyzer = 1;

Returns
TypeDescription
ByteString

The bytes for analyzer.

getAttrs()

public Map<String,AttributeValue> getAttrs()

Use #getAttrsMap() instead.

Returns
TypeDescription
Map<String,AttributeValue>

getAttrsCount()

public int getAttrsCount()

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.

map<string, .google.events.cloud.visionai.v1.AttributeValue> attrs = 4;

Returns
TypeDescription
int

getAttrsMap()

public Map<String,AttributeValue> getAttrsMap()

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.

map<string, .google.events.cloud.visionai.v1.AttributeValue> attrs = 4;

Returns
TypeDescription
Map<String,AttributeValue>

getAttrsOrDefault(String key, AttributeValue defaultValue)

public AttributeValue getAttrsOrDefault(String key, AttributeValue defaultValue)

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.

map<string, .google.events.cloud.visionai.v1.AttributeValue> attrs = 4;

Parameters
NameDescription
keyString
defaultValueAttributeValue
Returns
TypeDescription
AttributeValue

getAttrsOrThrow(String key)

public AttributeValue getAttrsOrThrow(String key)

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.

map<string, .google.events.cloud.visionai.v1.AttributeValue> attrs = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
AttributeValue

getDebugOptions()

public AnalyzerDefinition.DebugOptions getDebugOptions()

Debug options.

.google.events.cloud.visionai.v1.AnalyzerDefinition.DebugOptions debug_options = 5;

Returns
TypeDescription
AnalyzerDefinition.DebugOptions

The debugOptions.

getDebugOptionsOrBuilder()

public AnalyzerDefinition.DebugOptionsOrBuilder getDebugOptionsOrBuilder()

Debug options.

.google.events.cloud.visionai.v1.AnalyzerDefinition.DebugOptions debug_options = 5;

Returns
TypeDescription
AnalyzerDefinition.DebugOptionsOrBuilder

getDefaultInstanceForType()

public AnalyzerDefinition getDefaultInstanceForType()
Returns
TypeDescription
AnalyzerDefinition

getInputs(int index)

public AnalyzerDefinition.StreamInput getInputs(int index)

Input streams.

repeated .google.events.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzerDefinition.StreamInput

getInputsCount()

public int getInputsCount()

Input streams.

repeated .google.events.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;

Returns
TypeDescription
int

getInputsList()

public List<AnalyzerDefinition.StreamInput> getInputsList()

Input streams.

repeated .google.events.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;

Returns
TypeDescription
List<StreamInput>

getInputsOrBuilder(int index)

public AnalyzerDefinition.StreamInputOrBuilder getInputsOrBuilder(int index)

Input streams.

repeated .google.events.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzerDefinition.StreamInputOrBuilder

getInputsOrBuilderList()

public List<? extends AnalyzerDefinition.StreamInputOrBuilder> getInputsOrBuilderList()

Input streams.

repeated .google.events.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;

Returns
TypeDescription
List<? extends com.google.events.cloud.visionai.v1.AnalyzerDefinition.StreamInputOrBuilder>

getOperator()

public String getOperator()

The name of the operator that this analyzer runs. Must match the name of a supported operator.

string operator = 2;

Returns
TypeDescription
String

The operator.

getOperatorBytes()

public ByteString getOperatorBytes()

The name of the operator that this analyzer runs. Must match the name of a supported operator.

string operator = 2;

Returns
TypeDescription
ByteString

The bytes for operator.

getParserForType()

public Parser<AnalyzerDefinition> getParserForType()
Returns
TypeDescription
Parser<AnalyzerDefinition>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasDebugOptions()

public boolean hasDebugOptions()

Debug options.

.google.events.cloud.visionai.v1.AnalyzerDefinition.DebugOptions debug_options = 5;

Returns
TypeDescription
boolean

Whether the debugOptions field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AnalyzerDefinition.Builder newBuilderForType()
Returns
TypeDescription
AnalyzerDefinition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnalyzerDefinition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AnalyzerDefinition.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AnalyzerDefinition.Builder toBuilder()
Returns
TypeDescription
AnalyzerDefinition.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException