Class SdkHarnessContainerImage.Builder (0.46.0)

public static final class SdkHarnessContainerImage.Builder extends GeneratedMessageV3.Builder<SdkHarnessContainerImage.Builder> implements SdkHarnessContainerImageOrBuilder

Defines a SDK harness container for executing Dataflow pipelines.

Protobuf type google.dataflow.v1beta3.SdkHarnessContainerImage

Static Methods

getDescriptor()

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

Methods

addAllCapabilities(Iterable<String> values)

public SdkHarnessContainerImage.Builder addAllCapabilities(Iterable<String> values)

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

repeated string capabilities = 4;

Parameter
Name Description
values Iterable<String>

The capabilities to add.

Returns
Type Description
SdkHarnessContainerImage.Builder

This builder for chaining.

addCapabilities(String value)

public SdkHarnessContainerImage.Builder addCapabilities(String value)

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

repeated string capabilities = 4;

Parameter
Name Description
value String

The capabilities to add.

Returns
Type Description
SdkHarnessContainerImage.Builder

This builder for chaining.

addCapabilitiesBytes(ByteString value)

public SdkHarnessContainerImage.Builder addCapabilitiesBytes(ByteString value)

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

repeated string capabilities = 4;

Parameter
Name Description
value ByteString

The bytes of the capabilities to add.

Returns
Type Description
SdkHarnessContainerImage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SdkHarnessContainerImage build()
Returns
Type Description
SdkHarnessContainerImage

buildPartial()

public SdkHarnessContainerImage buildPartial()
Returns
Type Description
SdkHarnessContainerImage

clear()

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

clearCapabilities()

public SdkHarnessContainerImage.Builder clearCapabilities()

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

repeated string capabilities = 4;

Returns
Type Description
SdkHarnessContainerImage.Builder

This builder for chaining.

clearContainerImage()

public SdkHarnessContainerImage.Builder clearContainerImage()

A docker container image that resides in Google Container Registry.

string container_image = 1;

Returns
Type Description
SdkHarnessContainerImage.Builder

This builder for chaining.

clearEnvironmentId()

public SdkHarnessContainerImage.Builder clearEnvironmentId()

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

string environment_id = 3;

Returns
Type Description
SdkHarnessContainerImage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SdkHarnessContainerImage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SdkHarnessContainerImage.Builder
Overrides

clearUseSingleCorePerContainer()

public SdkHarnessContainerImage.Builder clearUseSingleCorePerContainer()

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
SdkHarnessContainerImage.Builder

This builder for chaining.

clone()

public SdkHarnessContainerImage.Builder clone()
Returns
Type Description
SdkHarnessContainerImage.Builder
Overrides

getCapabilities(int index)

public String getCapabilities(int index)

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

repeated string capabilities = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The capabilities at the given index.

getCapabilitiesBytes(int index)

public ByteString getCapabilitiesBytes(int index)

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

repeated string capabilities = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the capabilities at the given index.

getCapabilitiesCount()

public int getCapabilitiesCount()

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

repeated string capabilities = 4;

Returns
Type Description
int

The count of capabilities.

getCapabilitiesList()

public ProtocolStringList getCapabilitiesList()

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

repeated string capabilities = 4;

Returns
Type Description
ProtocolStringList

A list containing the capabilities.

getContainerImage()

public String getContainerImage()

A docker container image that resides in Google Container Registry.

string container_image = 1;

Returns
Type Description
String

The containerImage.

getContainerImageBytes()

public ByteString getContainerImageBytes()

A docker container image that resides in Google Container Registry.

string container_image = 1;

Returns
Type Description
ByteString

The bytes for containerImage.

getDefaultInstanceForType()

public SdkHarnessContainerImage getDefaultInstanceForType()
Returns
Type Description
SdkHarnessContainerImage

getDescriptorForType()

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

getEnvironmentId()

public 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
String

The environmentId.

getEnvironmentIdBytes()

public 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
ByteString

The bytes for environmentId.

getUseSingleCorePerContainer()

public 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
boolean

The useSingleCorePerContainer.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SdkHarnessContainerImage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SdkHarnessContainerImage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SdkHarnessContainerImage.Builder
Overrides

setCapabilities(int index, String value)

public SdkHarnessContainerImage.Builder setCapabilities(int index, String value)

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

repeated string capabilities = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The capabilities to set.

Returns
Type Description
SdkHarnessContainerImage.Builder

This builder for chaining.

setContainerImage(String value)

public SdkHarnessContainerImage.Builder setContainerImage(String value)

A docker container image that resides in Google Container Registry.

string container_image = 1;

Parameter
Name Description
value String

The containerImage to set.

Returns
Type Description
SdkHarnessContainerImage.Builder

This builder for chaining.

setContainerImageBytes(ByteString value)

public SdkHarnessContainerImage.Builder setContainerImageBytes(ByteString value)

A docker container image that resides in Google Container Registry.

string container_image = 1;

Parameter
Name Description
value ByteString

The bytes for containerImage to set.

Returns
Type Description
SdkHarnessContainerImage.Builder

This builder for chaining.

setEnvironmentId(String value)

public SdkHarnessContainerImage.Builder setEnvironmentId(String value)

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

string environment_id = 3;

Parameter
Name Description
value String

The environmentId to set.

Returns
Type Description
SdkHarnessContainerImage.Builder

This builder for chaining.

setEnvironmentIdBytes(ByteString value)

public SdkHarnessContainerImage.Builder setEnvironmentIdBytes(ByteString value)

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

string environment_id = 3;

Parameter
Name Description
value ByteString

The bytes for environmentId to set.

Returns
Type Description
SdkHarnessContainerImage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUseSingleCorePerContainer(boolean value)

public SdkHarnessContainerImage.Builder setUseSingleCorePerContainer(boolean value)

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;

Parameter
Name Description
value boolean

The useSingleCorePerContainer to set.

Returns
Type Description
SdkHarnessContainerImage.Builder

This builder for chaining.