Class ImageVersion.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImageVersion.Builder>
com.google.cloud.orchestration.airflow.service.v1beta1.ImageVersion.Builder
- All Implemented Interfaces:
ImageVersionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImageVersion
public static final class ImageVersion.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ImageVersion.Builder>
implements ImageVersionOrBuilder
Image Version informationProtobuf type
google.cloud.orchestration.airflow.service.v1beta1.ImageVersion-
Method Summary
Modifier and TypeMethodDescriptionaddAllSupportedPythonVersions(Iterable<String> values) supported python versionsaddSupportedPythonVersions(String value) supported python versionsaddSupportedPythonVersionsBytes(com.google.protobuf.ByteString value) supported python versionsbuild()clear()Whether it is impossible to create an environment with the image version.The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"Whether this is the default ImageVersion used by Composer during environment creation if no input ImageVersion is specified.The date of the version release.supported python versionsWhether it is impossible to upgrade an environment running with the image version.booleanWhether it is impossible to create an environment with the image version.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"com.google.protobuf.ByteStringThe string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"booleanWhether this is the default ImageVersion used by Composer during environment creation if no input ImageVersion is specified.The date of the version release.The date of the version release.The date of the version release.getSupportedPythonVersions(int index) supported python versionscom.google.protobuf.ByteStringgetSupportedPythonVersionsBytes(int index) supported python versionsintsupported python versionscom.google.protobuf.ProtocolStringListsupported python versionsbooleanWhether it is impossible to upgrade an environment running with the image version.booleanThe date of the version release.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ImageVersion other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeReleaseDate(Date value) The date of the version release.setCreationDisabled(boolean value) Whether it is impossible to create an environment with the image version.setImageVersionId(String value) The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"setImageVersionIdBytes(com.google.protobuf.ByteString value) The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"setIsDefault(boolean value) Whether this is the default ImageVersion used by Composer during environment creation if no input ImageVersion is specified.setReleaseDate(Date value) The date of the version release.setReleaseDate(Date.Builder builderForValue) The date of the version release.setSupportedPythonVersions(int index, String value) supported python versionssetUpgradeDisabled(boolean value) Whether it is impossible to upgrade an environment running with the image version.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ImageVersion.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ImageVersion.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ImageVersion.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImageVersion.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ImageVersion.Builder>
-
mergeFrom
public ImageVersion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImageVersion.Builder>- Throws:
IOException
-
getImageVersionId
The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"
string image_version_id = 1;- Specified by:
getImageVersionIdin interfaceImageVersionOrBuilder- Returns:
- The imageVersionId.
-
getImageVersionIdBytes
public com.google.protobuf.ByteString getImageVersionIdBytes()The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"
string image_version_id = 1;- Specified by:
getImageVersionIdBytesin interfaceImageVersionOrBuilder- Returns:
- The bytes for imageVersionId.
-
setImageVersionId
The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"
string image_version_id = 1;- Parameters:
value- The imageVersionId to set.- Returns:
- This builder for chaining.
-
clearImageVersionId
The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"
string image_version_id = 1;- Returns:
- This builder for chaining.
-
setImageVersionIdBytes
The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"
string image_version_id = 1;- Parameters:
value- The bytes for imageVersionId to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getIsDefaultin interfaceImageVersionOrBuilder- Returns:
- The isDefault.
-
setIsDefault
Whether this is the default ImageVersion used by Composer during environment creation if no input ImageVersion is specified.
bool is_default = 2;- Parameters:
value- The isDefault to set.- Returns:
- This builder for chaining.
-
clearIsDefault
Whether this is the default ImageVersion used by Composer during environment creation if no input ImageVersion is specified.
bool is_default = 2;- Returns:
- This builder for chaining.
-
getSupportedPythonVersionsList
public com.google.protobuf.ProtocolStringList getSupportedPythonVersionsList()supported python versions
repeated string supported_python_versions = 3;- Specified by:
getSupportedPythonVersionsListin interfaceImageVersionOrBuilder- Returns:
- A list containing the supportedPythonVersions.
-
getSupportedPythonVersionsCount
public int getSupportedPythonVersionsCount()supported python versions
repeated string supported_python_versions = 3;- Specified by:
getSupportedPythonVersionsCountin interfaceImageVersionOrBuilder- Returns:
- The count of supportedPythonVersions.
-
getSupportedPythonVersions
supported python versions
repeated string supported_python_versions = 3;- Specified by:
getSupportedPythonVersionsin interfaceImageVersionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The supportedPythonVersions at the given index.
-
getSupportedPythonVersionsBytes
public com.google.protobuf.ByteString getSupportedPythonVersionsBytes(int index) supported python versions
repeated string supported_python_versions = 3;- Specified by:
getSupportedPythonVersionsBytesin interfaceImageVersionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the supportedPythonVersions at the given index.
-
setSupportedPythonVersions
supported python versions
repeated string supported_python_versions = 3;- Parameters:
index- The index to set the value at.value- The supportedPythonVersions to set.- Returns:
- This builder for chaining.
-
addSupportedPythonVersions
supported python versions
repeated string supported_python_versions = 3;- Parameters:
value- The supportedPythonVersions to add.- Returns:
- This builder for chaining.
-
addAllSupportedPythonVersions
supported python versions
repeated string supported_python_versions = 3;- Parameters:
values- The supportedPythonVersions to add.- Returns:
- This builder for chaining.
-
clearSupportedPythonVersions
supported python versions
repeated string supported_python_versions = 3;- Returns:
- This builder for chaining.
-
addSupportedPythonVersionsBytes
supported python versions
repeated string supported_python_versions = 3;- Parameters:
value- The bytes of the supportedPythonVersions to add.- Returns:
- This builder for chaining.
-
hasReleaseDate
public boolean hasReleaseDate()The date of the version release.
.google.type.Date release_date = 4;- Specified by:
hasReleaseDatein interfaceImageVersionOrBuilder- Returns:
- Whether the releaseDate field is set.
-
getReleaseDate
The date of the version release.
.google.type.Date release_date = 4;- Specified by:
getReleaseDatein interfaceImageVersionOrBuilder- Returns:
- The releaseDate.
-
setReleaseDate
The date of the version release.
.google.type.Date release_date = 4; -
setReleaseDate
The date of the version release.
.google.type.Date release_date = 4; -
mergeReleaseDate
The date of the version release.
.google.type.Date release_date = 4; -
clearReleaseDate
The date of the version release.
.google.type.Date release_date = 4; -
getReleaseDateBuilder
The date of the version release.
.google.type.Date release_date = 4; -
getReleaseDateOrBuilder
The date of the version release.
.google.type.Date release_date = 4;- Specified by:
getReleaseDateOrBuilderin interfaceImageVersionOrBuilder
-
getCreationDisabled
public boolean getCreationDisabled()Whether it is impossible to create an environment with the image version.
bool creation_disabled = 5;- Specified by:
getCreationDisabledin interfaceImageVersionOrBuilder- Returns:
- The creationDisabled.
-
setCreationDisabled
Whether it is impossible to create an environment with the image version.
bool creation_disabled = 5;- Parameters:
value- The creationDisabled to set.- Returns:
- This builder for chaining.
-
clearCreationDisabled
Whether it is impossible to create an environment with the image version.
bool creation_disabled = 5;- Returns:
- This builder for chaining.
-
getUpgradeDisabled
public boolean getUpgradeDisabled()Whether it is impossible to upgrade an environment running with the image version.
bool upgrade_disabled = 6;- Specified by:
getUpgradeDisabledin interfaceImageVersionOrBuilder- Returns:
- The upgradeDisabled.
-
setUpgradeDisabled
Whether it is impossible to upgrade an environment running with the image version.
bool upgrade_disabled = 6;- Parameters:
value- The upgradeDisabled to set.- Returns:
- This builder for chaining.
-
clearUpgradeDisabled
Whether it is impossible to upgrade an environment running with the image version.
bool upgrade_disabled = 6;- Returns:
- This builder for chaining.
-