public static final class ImageVersion.Builder extends GeneratedMessage.Builder<ImageVersion.Builder> implements ImageVersionOrBuilderImage Version information
Protobuf type google.cloud.orchestration.airflow.service.v1beta1.ImageVersion
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ImageVersion.BuilderImplements
ImageVersionOrBuilderStatic 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. |
addSupportedPythonVersions(String value)
public ImageVersion.Builder addSupportedPythonVersions(String value)supported python versions
repeated string supported_python_versions = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 |
ByteStringThe 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 |
|
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. |
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. |
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. |
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 |
|
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 |
intThe 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 |
intThe 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ImageVersion.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ImageVersion.Builder |
|
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 |
|
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 |
booleanThe creationDisabled to set. |
| Returns | |
|---|---|
| Type | Description |
ImageVersion.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe 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 |
booleanThe 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 |
|
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 |
intThe index to set the value at. |
value |
StringThe supportedPythonVersions to set. |
| Returns | |
|---|---|
| Type | Description |
ImageVersion.Builder |
This builder for chaining. |
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 |
booleanThe upgradeDisabled to set. |
| Returns | |
|---|---|
| Type | Description |
ImageVersion.Builder |
This builder for chaining. |