# Interface AnalysisOrBuilder (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.AnalysisOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.visionai.v1.AnalysisOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.visionai.v1.AnalysisOrBuilder)

    public interface AnalysisOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### containsInputStreamsMapping(String key)

    public abstract boolean containsInputStreamsMapping(String key)

Map from the input parameter in the definition to the real stream.
E.g., suppose you had a stream source operator named "input-0" and you try
to receive from the real stream "stream-0". You can add the following
mapping: \[input-0: stream-0\].

`map<string, string> input_streams_mapping = 6;`

| **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` |   |

### containsLabels(String key)

    public abstract boolean containsLabels(String key)

Labels as key value pairs.

`map<string, string> labels = 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` |   |

### containsOutputStreamsMapping(String key)

    public abstract boolean containsOutputStreamsMapping(String key)

Map from the output parameter in the definition to the real stream.
E.g., suppose you had a stream sink operator named "output-0" and you try
to send to the real stream "stream-0". You can add the following
mapping: \[output-0: stream-0\].

`map<string, string> output_streams_mapping = 7;`

| **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` |   |

### getAnalysisDefinition()

    public abstract AnalysisDefinition getAnalysisDefinition()

The definition of the analysis.

`.google.events.cloud.visionai.v1.AnalysisDefinition analysis_definition = 5;`

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

### getAnalysisDefinitionOrBuilder()

    public abstract AnalysisDefinitionOrBuilder getAnalysisDefinitionOrBuilder()

The definition of the analysis.

`.google.events.cloud.visionai.v1.AnalysisDefinition analysis_definition = 5;`

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

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. The create timestamp.

`.google.protobuf.Timestamp create_time = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The createTime. |

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The create timestamp.

`.google.protobuf.Timestamp create_time = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getDisableEventWatch()

    public abstract boolean getDisableEventWatch()

Boolean flag to indicate whether you would like to disable the ability
to automatically start a Process when new event happening in the input
Stream. If you would like to start a Process manually, the field needs
to be set to true.

`bool disable_event_watch = 8;`

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

### getInputStreamsMapping()

    public abstract Map<String,String> getInputStreamsMapping()

Use [#getInputStreamsMappingMap()](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AnalysisOrBuilder#com_google_events_cloud_visionai_v1_AnalysisOrBuilder_getInputStreamsMappingMap__) 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.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getInputStreamsMappingCount()

    public abstract int getInputStreamsMappingCount()

Map from the input parameter in the definition to the real stream.
E.g., suppose you had a stream source operator named "input-0" and you try
to receive from the real stream "stream-0". You can add the following
mapping: \[input-0: stream-0\].

`map<string, string> input_streams_mapping = 6;`

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

### getInputStreamsMappingMap()

    public abstract Map<String,String> getInputStreamsMappingMap()

Map from the input parameter in the definition to the real stream.
E.g., suppose you had a stream source operator named "input-0" and you try
to receive from the real stream "stream-0". You can add the following
mapping: \[input-0: stream-0\].

`map<string, string> input_streams_mapping = 6;`

| **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.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getInputStreamsMappingOrDefault(String key, String defaultValue)

    public abstract String getInputStreamsMappingOrDefault(String key, String defaultValue)

Map from the input parameter in the definition to the real stream.
E.g., suppose you had a stream source operator named "input-0" and you try
to receive from the real stream "stream-0". You can add the following
mapping: \[input-0: stream-0\].

`map<string, string> input_streams_mapping = 6;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getInputStreamsMappingOrThrow(String key)

    public abstract String getInputStreamsMappingOrThrow(String key)

Map from the input parameter in the definition to the real stream.
E.g., suppose you had a stream source operator named "input-0" and you try
to receive from the real stream "stream-0". You can add the following
mapping: \[input-0: stream-0\].

`map<string, string> input_streams_mapping = 6;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getLabels()

    public abstract Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AnalysisOrBuilder#com_google_events_cloud_visionai_v1_AnalysisOrBuilder_getLabelsMap__) 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.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsCount()

    public abstract int getLabelsCount()

Labels as key value pairs.

`map<string, string> labels = 4;`

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

### getLabelsMap()

    public abstract Map<String,String> getLabelsMap()

Labels as key value pairs.

`map<string, string> labels = 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.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsOrDefault(String key, String defaultValue)

    public abstract String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs.

`map<string, string> labels = 4;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getLabelsOrThrow(String key)

    public abstract String getLabelsOrThrow(String key)

Labels as key value pairs.

`map<string, string> labels = 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/8/docs/api/java/lang/String.html` |   |

### getName()

    public abstract String getName()

The name of resource.

`string name = 1;`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

The name of resource.

`string name = 1;`

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

### getOutputStreamsMapping()

    public abstract Map<String,String> getOutputStreamsMapping()

Use [#getOutputStreamsMappingMap()](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.AnalysisOrBuilder#com_google_events_cloud_visionai_v1_AnalysisOrBuilder_getOutputStreamsMappingMap__) 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.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getOutputStreamsMappingCount()

    public abstract int getOutputStreamsMappingCount()

Map from the output parameter in the definition to the real stream.
E.g., suppose you had a stream sink operator named "output-0" and you try
to send to the real stream "stream-0". You can add the following
mapping: \[output-0: stream-0\].

`map<string, string> output_streams_mapping = 7;`

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

### getOutputStreamsMappingMap()

    public abstract Map<String,String> getOutputStreamsMappingMap()

Map from the output parameter in the definition to the real stream.
E.g., suppose you had a stream sink operator named "output-0" and you try
to send to the real stream "stream-0". You can add the following
mapping: \[output-0: stream-0\].

`map<string, string> output_streams_mapping = 7;`

| **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.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getOutputStreamsMappingOrDefault(String key, String defaultValue)

    public abstract String getOutputStreamsMappingOrDefault(String key, String defaultValue)

Map from the output parameter in the definition to the real stream.
E.g., suppose you had a stream sink operator named "output-0" and you try
to send to the real stream "stream-0". You can add the following
mapping: \[output-0: stream-0\].

`map<string, string> output_streams_mapping = 7;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getOutputStreamsMappingOrThrow(String key)

    public abstract String getOutputStreamsMappingOrThrow(String key)

Map from the output parameter in the definition to the real stream.
E.g., suppose you had a stream sink operator named "output-0" and you try
to send to the real stream "stream-0". You can add the following
mapping: \[output-0: stream-0\].

`map<string, string> output_streams_mapping = 7;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getUpdateTime()

    public abstract Timestamp getUpdateTime()

Output only. The update timestamp.

`.google.protobuf.Timestamp update_time = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The updateTime. |

### getUpdateTimeOrBuilder()

    public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update timestamp.

`.google.protobuf.Timestamp update_time = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### hasAnalysisDefinition()

    public abstract boolean hasAnalysisDefinition()

The definition of the analysis.

`.google.events.cloud.visionai.v1.AnalysisDefinition analysis_definition = 5;`

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

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. The create timestamp.

`.google.protobuf.Timestamp create_time = 2;`

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

### hasUpdateTime()

    public abstract boolean hasUpdateTime()

Output only. The update timestamp.

`.google.protobuf.Timestamp update_time = 3;`

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