# Interface AnalyzerDefinitionOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AnalyzerDefinitionOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.visionai.v1.AnalyzerDefinitionOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.visionai.v1.AnalyzerDefinitionOrBuilder)

    public interface AnalyzerDefinitionOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### containsAttrs(String key)

    public abstract 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** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getAnalyzer()

    public abstract String getAnalyzer()

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

`string analyzer = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The analyzer. |

### getAnalyzerBytes()

    public abstract ByteString getAnalyzerBytes()

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

`string analyzer = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for analyzer. |

### getAttrs()

    public abstract Map<String,AttributeValue> getAttrs()

Use [#getAttrsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AnalyzerDefinitionOrBuilder#com_google_events_cloud_visionai_v1_AnalyzerDefinitionOrBuilder_getAttrsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AttributeValue>` |   |

### getAttrsCount()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getAttrsMap()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AttributeValue>` |   |

### getAttrsOrDefault(String key, AttributeValue defaultValue)

    public abstract 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** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AttributeValue` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AttributeValue` |   |

### getAttrsOrThrow(String key)

    public abstract 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** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AttributeValue` |   |

### getDebugOptions()

    public abstract AnalyzerDefinition.DebugOptions getDebugOptions()

Debug options.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AnalyzerDefinition.DebugOptions` | The debugOptions. |

### getDebugOptionsOrBuilder()

    public abstract AnalyzerDefinition.DebugOptionsOrBuilder getDebugOptionsOrBuilder()

Debug options.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AnalyzerDefinition.DebugOptionsOrBuilder` |   |

### getInputs(int index)

    public abstract AnalyzerDefinition.StreamInput getInputs(int index)

Input streams.

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AnalyzerDefinition.StreamInput` |   |

### getInputsCount()

    public abstract int getInputsCount()

Input streams.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getInputsList()

    public abstract List<AnalyzerDefinition.StreamInput> getInputsList()

Input streams.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AnalyzerDefinition.StreamInput>` |   |

### getInputsOrBuilder(int index)

    public abstract AnalyzerDefinition.StreamInputOrBuilder getInputsOrBuilder(int index)

Input streams.

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AnalyzerDefinition.StreamInputOrBuilder` |   |

### getInputsOrBuilderList()

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

Input streams.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.events.cloud.visionai.v1.AnalyzerDefinition.StreamInputOrBuilder>` |   |

### getOperator()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The operator. |

### getOperatorBytes()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for operator. |

### hasDebugOptions()

    public abstract boolean hasDebugOptions()

Debug options.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the debugOptions field is set. |