Class ImageVersion.Builder (1.42.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
TypeDescription
Descriptor

Methods

addAllSupportedPythonVersions(Iterable<String> values)

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

supported python versions

repeated string supported_python_versions = 3;

Parameter
NameDescription
valuesIterable<String>

The supportedPythonVersions to add.

Returns
TypeDescription
ImageVersion.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSupportedPythonVersions(String value)

public ImageVersion.Builder addSupportedPythonVersions(String value)

supported python versions

repeated string supported_python_versions = 3;

Parameter
NameDescription
valueString

The supportedPythonVersions to add.

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

The bytes of the supportedPythonVersions to add.

Returns
TypeDescription
ImageVersion.Builder

This builder for chaining.

build()

public ImageVersion build()
Returns
TypeDescription
ImageVersion

buildPartial()

public ImageVersion buildPartial()
Returns
TypeDescription
ImageVersion

clear()

public ImageVersion.Builder clear()
Returns
TypeDescription
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
TypeDescription
ImageVersion.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReleaseDate()

public ImageVersion.Builder clearReleaseDate()

The date of the version release.

.google.type.Date release_date = 4;

Returns
TypeDescription
ImageVersion.Builder

clearSupportedPythonVersions()

public ImageVersion.Builder clearSupportedPythonVersions()

supported python versions

repeated string supported_python_versions = 3;

Returns
TypeDescription
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
TypeDescription
ImageVersion.Builder

This builder for chaining.

clone()

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

getCreationDisabled()

public boolean getCreationDisabled()

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

bool creation_disabled = 5;

Returns
TypeDescription
boolean

The creationDisabled.

getDefaultInstanceForType()

public ImageVersion getDefaultInstanceForType()
Returns
TypeDescription
ImageVersion

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The isDefault.

getReleaseDate()

public Date getReleaseDate()

The date of the version release.

.google.type.Date release_date = 4;

Returns
TypeDescription
com.google.type.Date

The releaseDate.

getReleaseDateBuilder()

public Date.Builder getReleaseDateBuilder()

The date of the version release.

.google.type.Date release_date = 4;

Returns
TypeDescription
com.google.type.Date.Builder

getReleaseDateOrBuilder()

public DateOrBuilder getReleaseDateOrBuilder()

The date of the version release.

.google.type.Date release_date = 4;

Returns
TypeDescription
com.google.type.DateOrBuilder

getSupportedPythonVersions(int index)

public String getSupportedPythonVersions(int index)

supported python versions

repeated string supported_python_versions = 3;

Parameter
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the supportedPythonVersions at the given index.

getSupportedPythonVersionsCount()

public int getSupportedPythonVersionsCount()

supported python versions

repeated string supported_python_versions = 3;

Returns
TypeDescription
int

The count of supportedPythonVersions.

getSupportedPythonVersionsList()

public ProtocolStringList getSupportedPythonVersionsList()

supported python versions

repeated string supported_python_versions = 3;

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

The upgradeDisabled.

hasReleaseDate()

public boolean hasReleaseDate()

The date of the version release.

.google.type.Date release_date = 4;

Returns
TypeDescription
boolean

Whether the releaseDate field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImageVersion other)

public ImageVersion.Builder mergeFrom(ImageVersion other)
Parameter
NameDescription
otherImageVersion
Returns
TypeDescription
ImageVersion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ImageVersion.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
ImageVersion.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The creationDisabled to set.

Returns
TypeDescription
ImageVersion.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The imageVersionId to set.

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

The bytes for imageVersionId to set.

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

The isDefault to set.

Returns
TypeDescription
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
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.Date.Builder
Returns
TypeDescription
ImageVersion.Builder

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

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

The index to set the value at.

valueString

The supportedPythonVersions to set.

Returns
TypeDescription
ImageVersion.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ImageVersion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The upgradeDisabled to set.

Returns
TypeDescription
ImageVersion.Builder

This builder for chaining.