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

    public interface SdkHarnessContainerImageOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCapabilities(int index)

    public abstract String getCapabilities(int index)

The set of capabilities enumerated in the above Environment proto. See also
[beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)

`repeated string capabilities = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The capabilities at the given index. |

### getCapabilitiesBytes(int index)

    public abstract ByteString getCapabilitiesBytes(int index)

The set of capabilities enumerated in the above Environment proto. See also
[beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)

`repeated string capabilities = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the capabilities at the given index. |

### getCapabilitiesCount()

    public abstract int getCapabilitiesCount()

The set of capabilities enumerated in the above Environment proto. See also
[beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)

`repeated string capabilities = 4;`

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

### getCapabilitiesList()

    public abstract List<String> getCapabilitiesList()

The set of capabilities enumerated in the above Environment proto. See also
[beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)

`repeated string capabilities = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the capabilities. |

### getContainerImage()

    public abstract String getContainerImage()

A docker container image that resides in Google Container Registry.

`string container_image = 1;`

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

### getContainerImageBytes()

    public abstract ByteString getContainerImageBytes()

A docker container image that resides in Google Container Registry.

`string container_image = 1;`

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

### getEnvironmentId()

    public abstract String getEnvironmentId()

Environment ID for the Beam runner API proto Environment that corresponds
to the current SDK Harness.

`string environment_id = 3;`

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

### getEnvironmentIdBytes()

    public abstract ByteString getEnvironmentIdBytes()

Environment ID for the Beam runner API proto Environment that corresponds
to the current SDK Harness.

`string environment_id = 3;`

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

### getUseSingleCorePerContainer()

    public abstract boolean getUseSingleCorePerContainer()

If true, recommends the Dataflow service to use only one core per SDK
container instance with this image. If false (or unset) recommends using
more than one core per SDK container instance with this image for
efficiency. Note that Dataflow service may choose to override this property
if needed.

`bool use_single_core_per_container = 2;`

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