Class AnalyzerDefinition.Builder (0.14.1)

public static final class AnalyzerDefinition.Builder extends GeneratedMessageV3.Builder<AnalyzerDefinition.Builder> 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 Methods

getDescriptor()

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

Methods

addAllInputs(Iterable<? extends AnalyzerDefinition.StreamInput> values)

public AnalyzerDefinition.Builder addAllInputs(Iterable<? extends AnalyzerDefinition.StreamInput> values)

Input streams.

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

Parameter
NameDescription
valuesIterable<? extends com.google.events.cloud.visionai.v1.AnalyzerDefinition.StreamInput>
Returns
TypeDescription
AnalyzerDefinition.Builder

addInputs(AnalyzerDefinition.StreamInput value)

public AnalyzerDefinition.Builder addInputs(AnalyzerDefinition.StreamInput value)

Input streams.

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

Parameter
NameDescription
valueAnalyzerDefinition.StreamInput
Returns
TypeDescription
AnalyzerDefinition.Builder

addInputs(AnalyzerDefinition.StreamInput.Builder builderForValue)

public AnalyzerDefinition.Builder addInputs(AnalyzerDefinition.StreamInput.Builder builderForValue)

Input streams.

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

Parameter
NameDescription
builderForValueAnalyzerDefinition.StreamInput.Builder
Returns
TypeDescription
AnalyzerDefinition.Builder

addInputs(int index, AnalyzerDefinition.StreamInput value)

public AnalyzerDefinition.Builder addInputs(int index, AnalyzerDefinition.StreamInput value)

Input streams.

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

Parameters
NameDescription
indexint
valueAnalyzerDefinition.StreamInput
Returns
TypeDescription
AnalyzerDefinition.Builder

addInputs(int index, AnalyzerDefinition.StreamInput.Builder builderForValue)

public AnalyzerDefinition.Builder addInputs(int index, AnalyzerDefinition.StreamInput.Builder builderForValue)

Input streams.

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

Parameters
NameDescription
indexint
builderForValueAnalyzerDefinition.StreamInput.Builder
Returns
TypeDescription
AnalyzerDefinition.Builder

addInputsBuilder()

public AnalyzerDefinition.StreamInput.Builder addInputsBuilder()

Input streams.

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

Returns
TypeDescription
AnalyzerDefinition.StreamInput.Builder

addInputsBuilder(int index)

public AnalyzerDefinition.StreamInput.Builder addInputsBuilder(int index)

Input streams.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzerDefinition.StreamInput.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalyzerDefinition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnalyzerDefinition.Builder
Overrides

build()

public AnalyzerDefinition build()
Returns
TypeDescription
AnalyzerDefinition

buildPartial()

public AnalyzerDefinition buildPartial()
Returns
TypeDescription
AnalyzerDefinition

clear()

public AnalyzerDefinition.Builder clear()
Returns
TypeDescription
AnalyzerDefinition.Builder
Overrides

clearAnalyzer()

public AnalyzerDefinition.Builder clearAnalyzer()

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

string analyzer = 1;

Returns
TypeDescription
AnalyzerDefinition.Builder

This builder for chaining.

clearAttrs()

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

clearDebugOptions()

public AnalyzerDefinition.Builder clearDebugOptions()

Debug options.

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

Returns
TypeDescription
AnalyzerDefinition.Builder

clearField(Descriptors.FieldDescriptor field)

public AnalyzerDefinition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AnalyzerDefinition.Builder
Overrides

clearInputs()

public AnalyzerDefinition.Builder clearInputs()

Input streams.

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

Returns
TypeDescription
AnalyzerDefinition.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzerDefinition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AnalyzerDefinition.Builder
Overrides

clearOperator()

public AnalyzerDefinition.Builder clearOperator()

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

string operator = 2;

Returns
TypeDescription
AnalyzerDefinition.Builder

This builder for chaining.

clone()

public AnalyzerDefinition.Builder clone()
Returns
TypeDescription
AnalyzerDefinition.Builder
Overrides

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

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.

getDebugOptionsBuilder()

public AnalyzerDefinition.DebugOptions.Builder getDebugOptionsBuilder()

Debug options.

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

Returns
TypeDescription
AnalyzerDefinition.DebugOptions.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

getInputsBuilder(int index)

public AnalyzerDefinition.StreamInput.Builder getInputsBuilder(int index)

Input streams.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzerDefinition.StreamInput.Builder

getInputsBuilderList()

public List<AnalyzerDefinition.StreamInput.Builder> getInputsBuilderList()

Input streams.

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

Returns
TypeDescription
List<Builder>

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>

getMutableAttrs()

public Map<String,AttributeValue> getMutableAttrs()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,AttributeValue>

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

internalGetMutableMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDebugOptions(AnalyzerDefinition.DebugOptions value)

public AnalyzerDefinition.Builder mergeDebugOptions(AnalyzerDefinition.DebugOptions value)

Debug options.

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

Parameter
NameDescription
valueAnalyzerDefinition.DebugOptions
Returns
TypeDescription
AnalyzerDefinition.Builder

mergeFrom(AnalyzerDefinition other)

public AnalyzerDefinition.Builder mergeFrom(AnalyzerDefinition other)
Parameter
NameDescription
otherAnalyzerDefinition
Returns
TypeDescription
AnalyzerDefinition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnalyzerDefinition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzerDefinition.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AnalyzerDefinition.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AnalyzerDefinition.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzerDefinition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalyzerDefinition.Builder
Overrides

putAllAttrs(Map<String,AttributeValue> values)

public AnalyzerDefinition.Builder putAllAttrs(Map<String,AttributeValue> values)

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
valuesMap<String,AttributeValue>
Returns
TypeDescription
AnalyzerDefinition.Builder

putAttrs(String key, AttributeValue value)

public AnalyzerDefinition.Builder putAttrs(String key, AttributeValue value)

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
valueAttributeValue
Returns
TypeDescription
AnalyzerDefinition.Builder

removeAttrs(String key)

public AnalyzerDefinition.Builder removeAttrs(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
AnalyzerDefinition.Builder

removeInputs(int index)

public AnalyzerDefinition.Builder removeInputs(int index)

Input streams.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzerDefinition.Builder

setAnalyzer(String value)

public AnalyzerDefinition.Builder setAnalyzer(String value)

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

string analyzer = 1;

Parameter
NameDescription
valueString

The analyzer to set.

Returns
TypeDescription
AnalyzerDefinition.Builder

This builder for chaining.

setAnalyzerBytes(ByteString value)

public AnalyzerDefinition.Builder setAnalyzerBytes(ByteString value)

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

string analyzer = 1;

Parameter
NameDescription
valueByteString

The bytes for analyzer to set.

Returns
TypeDescription
AnalyzerDefinition.Builder

This builder for chaining.

setDebugOptions(AnalyzerDefinition.DebugOptions value)

public AnalyzerDefinition.Builder setDebugOptions(AnalyzerDefinition.DebugOptions value)

Debug options.

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

Parameter
NameDescription
valueAnalyzerDefinition.DebugOptions
Returns
TypeDescription
AnalyzerDefinition.Builder

setDebugOptions(AnalyzerDefinition.DebugOptions.Builder builderForValue)

public AnalyzerDefinition.Builder setDebugOptions(AnalyzerDefinition.DebugOptions.Builder builderForValue)

Debug options.

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

Parameter
NameDescription
builderForValueAnalyzerDefinition.DebugOptions.Builder
Returns
TypeDescription
AnalyzerDefinition.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AnalyzerDefinition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnalyzerDefinition.Builder
Overrides

setInputs(int index, AnalyzerDefinition.StreamInput value)

public AnalyzerDefinition.Builder setInputs(int index, AnalyzerDefinition.StreamInput value)

Input streams.

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

Parameters
NameDescription
indexint
valueAnalyzerDefinition.StreamInput
Returns
TypeDescription
AnalyzerDefinition.Builder

setInputs(int index, AnalyzerDefinition.StreamInput.Builder builderForValue)

public AnalyzerDefinition.Builder setInputs(int index, AnalyzerDefinition.StreamInput.Builder builderForValue)

Input streams.

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

Parameters
NameDescription
indexint
builderForValueAnalyzerDefinition.StreamInput.Builder
Returns
TypeDescription
AnalyzerDefinition.Builder

setOperator(String value)

public AnalyzerDefinition.Builder setOperator(String value)

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

string operator = 2;

Parameter
NameDescription
valueString

The operator to set.

Returns
TypeDescription
AnalyzerDefinition.Builder

This builder for chaining.

setOperatorBytes(ByteString value)

public AnalyzerDefinition.Builder setOperatorBytes(ByteString value)

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

string operator = 2;

Parameter
NameDescription
valueByteString

The bytes for operator to set.

Returns
TypeDescription
AnalyzerDefinition.Builder

This builder for chaining.

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

public AnalyzerDefinition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AnalyzerDefinition.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzerDefinition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalyzerDefinition.Builder
Overrides