Class ContainerSpec.Builder (0.55.0)

public static final class ContainerSpec.Builder extends GeneratedMessageV3.Builder<ContainerSpec.Builder> implements ContainerSpecOrBuilder

Container Spec.

Protobuf type google.dataflow.v1beta3.ContainerSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ContainerSpec build()
Returns
Type Description
ContainerSpec

buildPartial()

public ContainerSpec buildPartial()
Returns
Type Description
ContainerSpec

clear()

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

clearDefaultEnvironment()

public ContainerSpec.Builder clearDefaultEnvironment()

Default runtime environment for the job.

.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment default_environment = 4;

Returns
Type Description
ContainerSpec.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearImage()

public ContainerSpec.Builder clearImage()

Name of the docker container image. E.g., gcr.io/project/some-image

string image = 1;

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

clearMetadata()

public ContainerSpec.Builder clearMetadata()

Metadata describing a template including description and validation rules.

.google.dataflow.v1beta3.TemplateMetadata metadata = 2;

Returns
Type Description
ContainerSpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSdkInfo()

public ContainerSpec.Builder clearSdkInfo()

Required. SDK info of the Flex Template.

.google.dataflow.v1beta3.SDKInfo sdk_info = 3;

Returns
Type Description
ContainerSpec.Builder

clone()

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

getDefaultEnvironment()

public FlexTemplateRuntimeEnvironment getDefaultEnvironment()

Default runtime environment for the job.

.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment default_environment = 4;

Returns
Type Description
FlexTemplateRuntimeEnvironment

The defaultEnvironment.

getDefaultEnvironmentBuilder()

public FlexTemplateRuntimeEnvironment.Builder getDefaultEnvironmentBuilder()

Default runtime environment for the job.

.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment default_environment = 4;

Returns
Type Description
FlexTemplateRuntimeEnvironment.Builder

getDefaultEnvironmentOrBuilder()

public FlexTemplateRuntimeEnvironmentOrBuilder getDefaultEnvironmentOrBuilder()

Default runtime environment for the job.

.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment default_environment = 4;

Returns
Type Description
FlexTemplateRuntimeEnvironmentOrBuilder

getDefaultInstanceForType()

public ContainerSpec getDefaultInstanceForType()
Returns
Type Description
ContainerSpec

getDescriptorForType()

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

getImage()

public String getImage()

Name of the docker container image. E.g., gcr.io/project/some-image

string image = 1;

Returns
Type Description
String

The image.

getImageBytes()

public ByteString getImageBytes()

Name of the docker container image. E.g., gcr.io/project/some-image

string image = 1;

Returns
Type Description
ByteString

The bytes for image.

getMetadata()

public TemplateMetadata getMetadata()

Metadata describing a template including description and validation rules.

.google.dataflow.v1beta3.TemplateMetadata metadata = 2;

Returns
Type Description
TemplateMetadata

The metadata.

getMetadataBuilder()

public TemplateMetadata.Builder getMetadataBuilder()

Metadata describing a template including description and validation rules.

.google.dataflow.v1beta3.TemplateMetadata metadata = 2;

Returns
Type Description
TemplateMetadata.Builder

getMetadataOrBuilder()

public TemplateMetadataOrBuilder getMetadataOrBuilder()

Metadata describing a template including description and validation rules.

.google.dataflow.v1beta3.TemplateMetadata metadata = 2;

Returns
Type Description
TemplateMetadataOrBuilder

getSdkInfo()

public SDKInfo getSdkInfo()

Required. SDK info of the Flex Template.

.google.dataflow.v1beta3.SDKInfo sdk_info = 3;

Returns
Type Description
SDKInfo

The sdkInfo.

getSdkInfoBuilder()

public SDKInfo.Builder getSdkInfoBuilder()

Required. SDK info of the Flex Template.

.google.dataflow.v1beta3.SDKInfo sdk_info = 3;

Returns
Type Description
SDKInfo.Builder

getSdkInfoOrBuilder()

public SDKInfoOrBuilder getSdkInfoOrBuilder()

Required. SDK info of the Flex Template.

.google.dataflow.v1beta3.SDKInfo sdk_info = 3;

Returns
Type Description
SDKInfoOrBuilder

hasDefaultEnvironment()

public boolean hasDefaultEnvironment()

Default runtime environment for the job.

.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment default_environment = 4;

Returns
Type Description
boolean

Whether the defaultEnvironment field is set.

hasMetadata()

public boolean hasMetadata()

Metadata describing a template including description and validation rules.

.google.dataflow.v1beta3.TemplateMetadata metadata = 2;

Returns
Type Description
boolean

Whether the metadata field is set.

hasSdkInfo()

public boolean hasSdkInfo()

Required. SDK info of the Flex Template.

.google.dataflow.v1beta3.SDKInfo sdk_info = 3;

Returns
Type Description
boolean

Whether the sdkInfo field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDefaultEnvironment(FlexTemplateRuntimeEnvironment value)

public ContainerSpec.Builder mergeDefaultEnvironment(FlexTemplateRuntimeEnvironment value)

Default runtime environment for the job.

.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment default_environment = 4;

Parameter
Name Description
value FlexTemplateRuntimeEnvironment
Returns
Type Description
ContainerSpec.Builder

mergeFrom(ContainerSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetadata(TemplateMetadata value)

public ContainerSpec.Builder mergeMetadata(TemplateMetadata value)

Metadata describing a template including description and validation rules.

.google.dataflow.v1beta3.TemplateMetadata metadata = 2;

Parameter
Name Description
value TemplateMetadata
Returns
Type Description
ContainerSpec.Builder

mergeSdkInfo(SDKInfo value)

public ContainerSpec.Builder mergeSdkInfo(SDKInfo value)

Required. SDK info of the Flex Template.

.google.dataflow.v1beta3.SDKInfo sdk_info = 3;

Parameter
Name Description
value SDKInfo
Returns
Type Description
ContainerSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDefaultEnvironment(FlexTemplateRuntimeEnvironment value)

public ContainerSpec.Builder setDefaultEnvironment(FlexTemplateRuntimeEnvironment value)

Default runtime environment for the job.

.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment default_environment = 4;

Parameter
Name Description
value FlexTemplateRuntimeEnvironment
Returns
Type Description
ContainerSpec.Builder

setDefaultEnvironment(FlexTemplateRuntimeEnvironment.Builder builderForValue)

public ContainerSpec.Builder setDefaultEnvironment(FlexTemplateRuntimeEnvironment.Builder builderForValue)

Default runtime environment for the job.

.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment default_environment = 4;

Parameter
Name Description
builderForValue FlexTemplateRuntimeEnvironment.Builder
Returns
Type Description
ContainerSpec.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setImage(String value)

public ContainerSpec.Builder setImage(String value)

Name of the docker container image. E.g., gcr.io/project/some-image

string image = 1;

Parameter
Name Description
value String

The image to set.

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

setImageBytes(ByteString value)

public ContainerSpec.Builder setImageBytes(ByteString value)

Name of the docker container image. E.g., gcr.io/project/some-image

string image = 1;

Parameter
Name Description
value ByteString

The bytes for image to set.

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

setMetadata(TemplateMetadata value)

public ContainerSpec.Builder setMetadata(TemplateMetadata value)

Metadata describing a template including description and validation rules.

.google.dataflow.v1beta3.TemplateMetadata metadata = 2;

Parameter
Name Description
value TemplateMetadata
Returns
Type Description
ContainerSpec.Builder

setMetadata(TemplateMetadata.Builder builderForValue)

public ContainerSpec.Builder setMetadata(TemplateMetadata.Builder builderForValue)

Metadata describing a template including description and validation rules.

.google.dataflow.v1beta3.TemplateMetadata metadata = 2;

Parameter
Name Description
builderForValue TemplateMetadata.Builder
Returns
Type Description
ContainerSpec.Builder

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

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

setSdkInfo(SDKInfo value)

public ContainerSpec.Builder setSdkInfo(SDKInfo value)

Required. SDK info of the Flex Template.

.google.dataflow.v1beta3.SDKInfo sdk_info = 3;

Parameter
Name Description
value SDKInfo
Returns
Type Description
ContainerSpec.Builder

setSdkInfo(SDKInfo.Builder builderForValue)

public ContainerSpec.Builder setSdkInfo(SDKInfo.Builder builderForValue)

Required. SDK info of the Flex Template.

.google.dataflow.v1beta3.SDKInfo sdk_info = 3;

Parameter
Name Description
builderForValue SDKInfo.Builder
Returns
Type Description
ContainerSpec.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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