Class AnalyzerDefinition.Builder (0.9.0)

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.cloud.visionai.v1.AnalyzerDefinition

Static Methods

getDescriptor()

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

Methods

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

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

Input streams.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.AnalyzerDefinition.StreamInput>
Returns
Type Description
AnalyzerDefinition.Builder

addInputs(AnalyzerDefinition.StreamInput value)

public AnalyzerDefinition.Builder addInputs(AnalyzerDefinition.StreamInput value)

Input streams.

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

Parameter
Name Description
value AnalyzerDefinition.StreamInput
Returns
Type Description
AnalyzerDefinition.Builder

addInputs(AnalyzerDefinition.StreamInput.Builder builderForValue)

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

Input streams.

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

Parameter
Name Description
builderForValue AnalyzerDefinition.StreamInput.Builder
Returns
Type Description
AnalyzerDefinition.Builder

addInputs(int index, AnalyzerDefinition.StreamInput value)

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

Input streams.

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

Parameters
Name Description
index int
value AnalyzerDefinition.StreamInput
Returns
Type Description
AnalyzerDefinition.Builder

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

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

Input streams.

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

Parameters
Name Description
index int
builderForValue AnalyzerDefinition.StreamInput.Builder
Returns
Type Description
AnalyzerDefinition.Builder

addInputsBuilder()

public AnalyzerDefinition.StreamInput.Builder addInputsBuilder()

Input streams.

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

Returns
Type Description
AnalyzerDefinition.StreamInput.Builder

addInputsBuilder(int index)

public AnalyzerDefinition.StreamInput.Builder addInputsBuilder(int index)

Input streams.

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

Parameter
Name Description
index int
Returns
Type Description
AnalyzerDefinition.StreamInput.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnalyzerDefinition build()
Returns
Type Description
AnalyzerDefinition

buildPartial()

public AnalyzerDefinition buildPartial()
Returns
Type Description
AnalyzerDefinition

clear()

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

clearAnalyzer()

public AnalyzerDefinition.Builder clearAnalyzer()

The name of this analyzer.

Tentatively a-z(_[a-z0-9]+).

string analyzer = 1;

Returns
Type Description
AnalyzerDefinition.Builder

This builder for chaining.

clearAttrs()

public AnalyzerDefinition.Builder clearAttrs()
Returns
Type Description
AnalyzerDefinition.Builder

clearDebugOptions()

public AnalyzerDefinition.Builder clearDebugOptions()

Debug options.

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

Returns
Type Description
AnalyzerDefinition.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInputs()

public AnalyzerDefinition.Builder clearInputs()

Input streams.

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

Returns
Type Description
AnalyzerDefinition.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzerDefinition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
AnalyzerDefinition.Builder

This builder for chaining.

clearOperatorOption()

public AnalyzerDefinition.Builder clearOperatorOption()

Operator option.

.google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;

Returns
Type Description
AnalyzerDefinition.Builder

clone()

public AnalyzerDefinition.Builder clone()
Returns
Type Description
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.cloud.visionai.v1.AttributeValue> attrs = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAnalyzer()

public String getAnalyzer()

The name of this analyzer.

Tentatively a-z(_[a-z0-9]+).

string analyzer = 1;

Returns
Type Description
String

The analyzer.

getAnalyzerBytes()

public ByteString getAnalyzerBytes()

The name of this analyzer.

Tentatively a-z(_[a-z0-9]+).

string analyzer = 1;

Returns
Type Description
ByteString

The bytes for analyzer.

getAttrs() (deprecated)

public Map<String,AttributeValue> getAttrs()

Use #getAttrsMap() instead.

Returns
Type Description
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.cloud.visionai.v1.AttributeValue> attrs = 4;

Returns
Type Description
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.cloud.visionai.v1.AttributeValue> attrs = 4;

Returns
Type Description
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.cloud.visionai.v1.AttributeValue> attrs = 4;

Parameters
Name Description
key String
defaultValue AttributeValue
Returns
Type Description
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.cloud.visionai.v1.AttributeValue> attrs = 4;

Parameter
Name Description
key String
Returns
Type Description
AttributeValue

getDebugOptions()

public AnalyzerDefinition.DebugOptions getDebugOptions()

Debug options.

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

Returns
Type Description
AnalyzerDefinition.DebugOptions

The debugOptions.

getDebugOptionsBuilder()

public AnalyzerDefinition.DebugOptions.Builder getDebugOptionsBuilder()

Debug options.

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

Returns
Type Description
AnalyzerDefinition.DebugOptions.Builder

getDebugOptionsOrBuilder()

public AnalyzerDefinition.DebugOptionsOrBuilder getDebugOptionsOrBuilder()

Debug options.

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

Returns
Type Description
AnalyzerDefinition.DebugOptionsOrBuilder

getDefaultInstanceForType()

public AnalyzerDefinition getDefaultInstanceForType()
Returns
Type Description
AnalyzerDefinition

getDescriptorForType()

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

getInputs(int index)

public AnalyzerDefinition.StreamInput getInputs(int index)

Input streams.

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

Parameter
Name Description
index int
Returns
Type Description
AnalyzerDefinition.StreamInput

getInputsBuilder(int index)

public AnalyzerDefinition.StreamInput.Builder getInputsBuilder(int index)

Input streams.

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

Parameter
Name Description
index int
Returns
Type Description
AnalyzerDefinition.StreamInput.Builder

getInputsBuilderList()

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

Input streams.

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

Returns
Type Description
List<Builder>

getInputsCount()

public int getInputsCount()

Input streams.

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

Returns
Type Description
int

getInputsList()

public List<AnalyzerDefinition.StreamInput> getInputsList()

Input streams.

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

Returns
Type Description
List<StreamInput>

getInputsOrBuilder(int index)

public AnalyzerDefinition.StreamInputOrBuilder getInputsOrBuilder(int index)

Input streams.

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

Parameter
Name Description
index int
Returns
Type Description
AnalyzerDefinition.StreamInputOrBuilder

getInputsOrBuilderList()

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

Input streams.

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

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.AnalyzerDefinition.StreamInputOrBuilder>

getMutableAttrs() (deprecated)

public Map<String,AttributeValue> getMutableAttrs()

Use alternate mutation accessors instead.

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for operator.

getOperatorOption()

public AnalyzerDefinition.OperatorOption getOperatorOption()

Operator option.

.google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;

Returns
Type Description
AnalyzerDefinition.OperatorOption

The operatorOption.

getOperatorOptionBuilder()

public AnalyzerDefinition.OperatorOption.Builder getOperatorOptionBuilder()

Operator option.

.google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;

Returns
Type Description
AnalyzerDefinition.OperatorOption.Builder

getOperatorOptionOrBuilder()

public AnalyzerDefinition.OperatorOptionOrBuilder getOperatorOptionOrBuilder()

Operator option.

.google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;

Returns
Type Description
AnalyzerDefinition.OperatorOptionOrBuilder

hasDebugOptions()

public boolean hasDebugOptions()

Debug options.

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

Returns
Type Description
boolean

Whether the debugOptions field is set.

hasOperatorOption()

public boolean hasOperatorOption()

Operator option.

.google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;

Returns
Type Description
boolean

Whether the operatorOption field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDebugOptions(AnalyzerDefinition.DebugOptions value)

public AnalyzerDefinition.Builder mergeDebugOptions(AnalyzerDefinition.DebugOptions value)

Debug options.

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

Parameter
Name Description
value AnalyzerDefinition.DebugOptions
Returns
Type Description
AnalyzerDefinition.Builder

mergeFrom(AnalyzerDefinition other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOperatorOption(AnalyzerDefinition.OperatorOption value)

public AnalyzerDefinition.Builder mergeOperatorOption(AnalyzerDefinition.OperatorOption value)

Operator option.

.google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;

Parameter
Name Description
value AnalyzerDefinition.OperatorOption
Returns
Type Description
AnalyzerDefinition.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzerDefinition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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.cloud.visionai.v1.AttributeValue> attrs = 4;

Parameter
Name Description
values Map<String,AttributeValue>
Returns
Type Description
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.cloud.visionai.v1.AttributeValue> attrs = 4;

Parameters
Name Description
key String
value AttributeValue
Returns
Type Description
AnalyzerDefinition.Builder

putAttrsBuilderIfAbsent(String key)

public AttributeValue.Builder putAttrsBuilderIfAbsent(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.cloud.visionai.v1.AttributeValue> attrs = 4;

Parameter
Name Description
key String
Returns
Type Description
AttributeValue.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.cloud.visionai.v1.AttributeValue> attrs = 4;

Parameter
Name Description
key String
Returns
Type Description
AnalyzerDefinition.Builder

removeInputs(int index)

public AnalyzerDefinition.Builder removeInputs(int index)

Input streams.

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

Parameter
Name Description
index int
Returns
Type Description
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
Name Description
value String

The analyzer to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for analyzer to set.

Returns
Type Description
AnalyzerDefinition.Builder

This builder for chaining.

setDebugOptions(AnalyzerDefinition.DebugOptions value)

public AnalyzerDefinition.Builder setDebugOptions(AnalyzerDefinition.DebugOptions value)

Debug options.

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

Parameter
Name Description
value AnalyzerDefinition.DebugOptions
Returns
Type Description
AnalyzerDefinition.Builder

setDebugOptions(AnalyzerDefinition.DebugOptions.Builder builderForValue)

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

Debug options.

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

Parameter
Name Description
builderForValue AnalyzerDefinition.DebugOptions.Builder
Returns
Type Description
AnalyzerDefinition.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInputs(int index, AnalyzerDefinition.StreamInput value)

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

Input streams.

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

Parameters
Name Description
index int
value AnalyzerDefinition.StreamInput
Returns
Type Description
AnalyzerDefinition.Builder

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

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

Input streams.

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

Parameters
Name Description
index int
builderForValue AnalyzerDefinition.StreamInput.Builder
Returns
Type Description
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
Name Description
value String

The operator to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for operator to set.

Returns
Type Description
AnalyzerDefinition.Builder

This builder for chaining.

setOperatorOption(AnalyzerDefinition.OperatorOption value)

public AnalyzerDefinition.Builder setOperatorOption(AnalyzerDefinition.OperatorOption value)

Operator option.

.google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;

Parameter
Name Description
value AnalyzerDefinition.OperatorOption
Returns
Type Description
AnalyzerDefinition.Builder

setOperatorOption(AnalyzerDefinition.OperatorOption.Builder builderForValue)

public AnalyzerDefinition.Builder setOperatorOption(AnalyzerDefinition.OperatorOption.Builder builderForValue)

Operator option.

.google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;

Parameter
Name Description
builderForValue AnalyzerDefinition.OperatorOption.Builder
Returns
Type Description
AnalyzerDefinition.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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