Class ContainerSpec.Builder (0.24.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContainerSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ContainerSpec.Builder
Overrides

build()

public ContainerSpec build()
Returns
TypeDescription
ContainerSpec

buildPartial()

public ContainerSpec buildPartial()
Returns
TypeDescription
ContainerSpec

clear()

public ContainerSpec.Builder clear()
Returns
TypeDescription
ContainerSpec.Builder
Overrides

clearDefaultEnvironment()

public ContainerSpec.Builder clearDefaultEnvironment()

Default runtime environment for the job.

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

Returns
TypeDescription
ContainerSpec.Builder

clearField(Descriptors.FieldDescriptor field)

public ContainerSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ContainerSpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ContainerSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ContainerSpec.Builder
Overrides

clearSdkInfo()

public ContainerSpec.Builder clearSdkInfo()

Required. SDK info of the Flex Template.

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

Returns
TypeDescription
ContainerSpec.Builder

clone()

public ContainerSpec.Builder clone()
Returns
TypeDescription
ContainerSpec.Builder
Overrides

getDefaultEnvironment()

public FlexTemplateRuntimeEnvironment getDefaultEnvironment()

Default runtime environment for the job.

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

Returns
TypeDescription
FlexTemplateRuntimeEnvironment

The defaultEnvironment.

getDefaultEnvironmentBuilder()

public FlexTemplateRuntimeEnvironment.Builder getDefaultEnvironmentBuilder()

Default runtime environment for the job.

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

Returns
TypeDescription
FlexTemplateRuntimeEnvironment.Builder

getDefaultEnvironmentOrBuilder()

public FlexTemplateRuntimeEnvironmentOrBuilder getDefaultEnvironmentOrBuilder()

Default runtime environment for the job.

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

Returns
TypeDescription
FlexTemplateRuntimeEnvironmentOrBuilder

getDefaultInstanceForType()

public ContainerSpec getDefaultInstanceForType()
Returns
TypeDescription
ContainerSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImage()

public String getImage()

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

string image = 1;

Returns
TypeDescription
String

The image.

getImageBytes()

public ByteString getImageBytes()

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

string image = 1;

Returns
TypeDescription
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
TypeDescription
TemplateMetadata

The metadata.

getMetadataBuilder()

public TemplateMetadata.Builder getMetadataBuilder()

Metadata describing a template including description and validation rules.

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

Returns
TypeDescription
TemplateMetadata.Builder

getMetadataOrBuilder()

public TemplateMetadataOrBuilder getMetadataOrBuilder()

Metadata describing a template including description and validation rules.

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

Returns
TypeDescription
TemplateMetadataOrBuilder

getSdkInfo()

public SDKInfo getSdkInfo()

Required. SDK info of the Flex Template.

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

Returns
TypeDescription
SDKInfo

The sdkInfo.

getSdkInfoBuilder()

public SDKInfo.Builder getSdkInfoBuilder()

Required. SDK info of the Flex Template.

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

Returns
TypeDescription
SDKInfo.Builder

getSdkInfoOrBuilder()

public SDKInfoOrBuilder getSdkInfoOrBuilder()

Required. SDK info of the Flex Template.

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

Returns
TypeDescription
SDKInfoOrBuilder

hasDefaultEnvironment()

public boolean hasDefaultEnvironment()

Default runtime environment for the job.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the sdkInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueFlexTemplateRuntimeEnvironment
Returns
TypeDescription
ContainerSpec.Builder

mergeFrom(ContainerSpec other)

public ContainerSpec.Builder mergeFrom(ContainerSpec other)
Parameter
NameDescription
otherContainerSpec
Returns
TypeDescription
ContainerSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ContainerSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ContainerSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTemplateMetadata
Returns
TypeDescription
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
NameDescription
valueSDKInfo
Returns
TypeDescription
ContainerSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContainerSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFlexTemplateRuntimeEnvironment
Returns
TypeDescription
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
NameDescription
builderForValueFlexTemplateRuntimeEnvironment.Builder
Returns
TypeDescription
ContainerSpec.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ContainerSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The image to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for image to set.

Returns
TypeDescription
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
NameDescription
valueTemplateMetadata
Returns
TypeDescription
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
NameDescription
builderForValueTemplateMetadata.Builder
Returns
TypeDescription
ContainerSpec.Builder

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

public ContainerSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSDKInfo
Returns
TypeDescription
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
NameDescription
builderForValueSDKInfo.Builder
Returns
TypeDescription
ContainerSpec.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ContainerSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ContainerSpec.Builder
Overrides