Class ImageVersion.Builder (1.47.0)

public static final class ImageVersion.Builder extends GeneratedMessageV3.Builder<ImageVersion.Builder> implements ImageVersionOrBuilder

ImageVersion information

Protobuf type google.cloud.orchestration.airflow.service.v1.ImageVersion

Static Methods

getDescriptor()

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

Methods

addAllSupportedPythonVersions(Iterable<String> values)

public ImageVersion.Builder addAllSupportedPythonVersions(Iterable<String> values)

supported python versions

repeated string supported_python_versions = 3;

Parameter
Name Description
values Iterable<String>

The supportedPythonVersions to add.

Returns
Type Description
ImageVersion.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSupportedPythonVersions(String value)

public ImageVersion.Builder addSupportedPythonVersions(String value)

supported python versions

repeated string supported_python_versions = 3;

Parameter
Name Description
value String

The supportedPythonVersions to add.

Returns
Type Description
ImageVersion.Builder

This builder for chaining.

addSupportedPythonVersionsBytes(ByteString value)

public ImageVersion.Builder addSupportedPythonVersionsBytes(ByteString value)

supported python versions

repeated string supported_python_versions = 3;

Parameter
Name Description
value ByteString

The bytes of the supportedPythonVersions to add.

Returns
Type Description
ImageVersion.Builder

This builder for chaining.

build()

public ImageVersion build()
Returns
Type Description
ImageVersion

buildPartial()

public ImageVersion buildPartial()
Returns
Type Description
ImageVersion

clear()

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

clearCreationDisabled()

public ImageVersion.Builder clearCreationDisabled()

Whether it is impossible to create an environment with the image version.

bool creation_disabled = 5;

Returns
Type Description
ImageVersion.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearImageVersionId()

public ImageVersion.Builder clearImageVersionId()

The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"

string image_version_id = 1;

Returns
Type Description
ImageVersion.Builder

This builder for chaining.

clearIsDefault()

public ImageVersion.Builder clearIsDefault()

Whether this is the default ImageVersion used by Composer during environment creation if no input ImageVersion is specified.

bool is_default = 2;

Returns
Type Description
ImageVersion.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReleaseDate()

public ImageVersion.Builder clearReleaseDate()

The date of the version release.

.google.type.Date release_date = 4;

Returns
Type Description
ImageVersion.Builder

clearSupportedPythonVersions()

public ImageVersion.Builder clearSupportedPythonVersions()

supported python versions

repeated string supported_python_versions = 3;

Returns
Type Description
ImageVersion.Builder

This builder for chaining.

clearUpgradeDisabled()

public ImageVersion.Builder clearUpgradeDisabled()

Whether it is impossible to upgrade an environment running with the image version.

bool upgrade_disabled = 6;

Returns
Type Description
ImageVersion.Builder

This builder for chaining.

clone()

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

getCreationDisabled()

public boolean getCreationDisabled()

Whether it is impossible to create an environment with the image version.

bool creation_disabled = 5;

Returns
Type Description
boolean

The creationDisabled.

getDefaultInstanceForType()

public ImageVersion getDefaultInstanceForType()
Returns
Type Description
ImageVersion

getDescriptorForType()

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

getImageVersionId()

public String getImageVersionId()

The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"

string image_version_id = 1;

Returns
Type Description
String

The imageVersionId.

getImageVersionIdBytes()

public ByteString getImageVersionIdBytes()

The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"

string image_version_id = 1;

Returns
Type Description
ByteString

The bytes for imageVersionId.

getIsDefault()

public boolean getIsDefault()

Whether this is the default ImageVersion used by Composer during environment creation if no input ImageVersion is specified.

bool is_default = 2;

Returns
Type Description
boolean

The isDefault.

getReleaseDate()

public Date getReleaseDate()

The date of the version release.

.google.type.Date release_date = 4;

Returns
Type Description
com.google.type.Date

The releaseDate.

getReleaseDateBuilder()

public Date.Builder getReleaseDateBuilder()

The date of the version release.

.google.type.Date release_date = 4;

Returns
Type Description
com.google.type.Date.Builder

getReleaseDateOrBuilder()

public DateOrBuilder getReleaseDateOrBuilder()

The date of the version release.

.google.type.Date release_date = 4;

Returns
Type Description
com.google.type.DateOrBuilder

getSupportedPythonVersions(int index)

public String getSupportedPythonVersions(int index)

supported python versions

repeated string supported_python_versions = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The supportedPythonVersions at the given index.

getSupportedPythonVersionsBytes(int index)

public ByteString getSupportedPythonVersionsBytes(int index)

supported python versions

repeated string supported_python_versions = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the supportedPythonVersions at the given index.

getSupportedPythonVersionsCount()

public int getSupportedPythonVersionsCount()

supported python versions

repeated string supported_python_versions = 3;

Returns
Type Description
int

The count of supportedPythonVersions.

getSupportedPythonVersionsList()

public ProtocolStringList getSupportedPythonVersionsList()

supported python versions

repeated string supported_python_versions = 3;

Returns
Type Description
ProtocolStringList

A list containing the supportedPythonVersions.

getUpgradeDisabled()

public boolean getUpgradeDisabled()

Whether it is impossible to upgrade an environment running with the image version.

bool upgrade_disabled = 6;

Returns
Type Description
boolean

The upgradeDisabled.

hasReleaseDate()

public boolean hasReleaseDate()

The date of the version release.

.google.type.Date release_date = 4;

Returns
Type Description
boolean

Whether the releaseDate field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImageVersion other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeReleaseDate(Date value)

public ImageVersion.Builder mergeReleaseDate(Date value)

The date of the version release.

.google.type.Date release_date = 4;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ImageVersion.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCreationDisabled(boolean value)

public ImageVersion.Builder setCreationDisabled(boolean value)

Whether it is impossible to create an environment with the image version.

bool creation_disabled = 5;

Parameter
Name Description
value boolean

The creationDisabled to set.

Returns
Type Description
ImageVersion.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setImageVersionId(String value)

public ImageVersion.Builder setImageVersionId(String value)

The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"

string image_version_id = 1;

Parameter
Name Description
value String

The imageVersionId to set.

Returns
Type Description
ImageVersion.Builder

This builder for chaining.

setImageVersionIdBytes(ByteString value)

public ImageVersion.Builder setImageVersionIdBytes(ByteString value)

The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"

string image_version_id = 1;

Parameter
Name Description
value ByteString

The bytes for imageVersionId to set.

Returns
Type Description
ImageVersion.Builder

This builder for chaining.

setIsDefault(boolean value)

public ImageVersion.Builder setIsDefault(boolean value)

Whether this is the default ImageVersion used by Composer during environment creation if no input ImageVersion is specified.

bool is_default = 2;

Parameter
Name Description
value boolean

The isDefault to set.

Returns
Type Description
ImageVersion.Builder

This builder for chaining.

setReleaseDate(Date value)

public ImageVersion.Builder setReleaseDate(Date value)

The date of the version release.

.google.type.Date release_date = 4;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ImageVersion.Builder

setReleaseDate(Date.Builder builderForValue)

public ImageVersion.Builder setReleaseDate(Date.Builder builderForValue)

The date of the version release.

.google.type.Date release_date = 4;

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
ImageVersion.Builder

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

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

setSupportedPythonVersions(int index, String value)

public ImageVersion.Builder setSupportedPythonVersions(int index, String value)

supported python versions

repeated string supported_python_versions = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The supportedPythonVersions to set.

Returns
Type Description
ImageVersion.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpgradeDisabled(boolean value)

public ImageVersion.Builder setUpgradeDisabled(boolean value)

Whether it is impossible to upgrade an environment running with the image version.

bool upgrade_disabled = 6;

Parameter
Name Description
value boolean

The upgradeDisabled to set.

Returns
Type Description
ImageVersion.Builder

This builder for chaining.