Google Cloud Dataflow V1beta3 Client - Class SdkHarnessContainerImage (0.4.1)

Reference documentation and code samples for the Google Cloud Dataflow V1beta3 Client class SdkHarnessContainerImage.

Defines a SDK harness container for executing Dataflow pipelines.

Generated from protobuf message google.dataflow.v1beta3.SdkHarnessContainerImage

Namespace

Google \ Cloud \ Dataflow \ V1beta3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ container_image string

A docker container image that resides in Google Container Registry.

↳ use_single_core_per_container bool

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.

↳ environment_id string

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

↳ capabilities array

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

getContainerImage

A docker container image that resides in Google Container Registry.

Returns
TypeDescription
string

setContainerImage

A docker container image that resides in Google Container Registry.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

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.

Returns
TypeDescription
bool

setUseSingleCorePerContainer

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.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getEnvironmentId

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

Returns
TypeDescription
string

setEnvironmentId

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCapabilities

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCapabilities

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this