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 information
 
Protobuf type google.cloud.orchestration.airflow.service.v1beta1.ImageVersion
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ImageVersion.Builder>
    • clear

      public ImageVersion.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ImageVersion.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ImageVersion.Builder>
    • getDefaultInstanceForType

      public ImageVersion getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ImageVersion build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ImageVersion buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ImageVersion.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageVersion.Builder>
    • mergeFrom

      public ImageVersion.Builder mergeFrom(ImageVersion other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageVersion.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      getImageVersionId in interface ImageVersionOrBuilder
      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:
      getImageVersionIdBytes in interface ImageVersionOrBuilder
      Returns:
      The bytes for imageVersionId.
    • setImageVersionId

      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;
      Parameters:
      value - The imageVersionId to set.
      Returns:
      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:
      This builder for chaining.
    • setImageVersionIdBytes

      public ImageVersion.Builder setImageVersionIdBytes(com.google.protobuf.ByteString value)
       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:
      getIsDefault in interface ImageVersionOrBuilder
      Returns:
      The isDefault.
    • setIsDefault

      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;
      Parameters:
      value - The isDefault to set.
      Returns:
      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:
      This builder for chaining.
    • getSupportedPythonVersionsList

      public com.google.protobuf.ProtocolStringList getSupportedPythonVersionsList()
       supported python versions
       
      repeated string supported_python_versions = 3;
      Specified by:
      getSupportedPythonVersionsList in interface ImageVersionOrBuilder
      Returns:
      A list containing the supportedPythonVersions.
    • getSupportedPythonVersionsCount

      public int getSupportedPythonVersionsCount()
       supported python versions
       
      repeated string supported_python_versions = 3;
      Specified by:
      getSupportedPythonVersionsCount in interface ImageVersionOrBuilder
      Returns:
      The count of supportedPythonVersions.
    • getSupportedPythonVersions

      public String getSupportedPythonVersions(int index)
       supported python versions
       
      repeated string supported_python_versions = 3;
      Specified by:
      getSupportedPythonVersions in interface ImageVersionOrBuilder
      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:
      getSupportedPythonVersionsBytes in interface ImageVersionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the supportedPythonVersions at the given index.
    • setSupportedPythonVersions

      public ImageVersion.Builder setSupportedPythonVersions(int index, String value)
       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

      public ImageVersion.Builder addSupportedPythonVersions(String value)
       supported python versions
       
      repeated string supported_python_versions = 3;
      Parameters:
      value - The supportedPythonVersions to add.
      Returns:
      This builder for chaining.
    • addAllSupportedPythonVersions

      public ImageVersion.Builder addAllSupportedPythonVersions(Iterable<String> values)
       supported python versions
       
      repeated string supported_python_versions = 3;
      Parameters:
      values - The supportedPythonVersions to add.
      Returns:
      This builder for chaining.
    • clearSupportedPythonVersions

      public ImageVersion.Builder clearSupportedPythonVersions()
       supported python versions
       
      repeated string supported_python_versions = 3;
      Returns:
      This builder for chaining.
    • addSupportedPythonVersionsBytes

      public ImageVersion.Builder addSupportedPythonVersionsBytes(com.google.protobuf.ByteString value)
       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:
      hasReleaseDate in interface ImageVersionOrBuilder
      Returns:
      Whether the releaseDate field is set.
    • getReleaseDate

      public Date getReleaseDate()
       The date of the version release.
       
      .google.type.Date release_date = 4;
      Specified by:
      getReleaseDate in interface ImageVersionOrBuilder
      Returns:
      The releaseDate.
    • setReleaseDate

      public ImageVersion.Builder setReleaseDate(Date value)
       The date of the version release.
       
      .google.type.Date release_date = 4;
    • setReleaseDate

      public ImageVersion.Builder setReleaseDate(Date.Builder builderForValue)
       The date of the version release.
       
      .google.type.Date release_date = 4;
    • mergeReleaseDate

      public ImageVersion.Builder mergeReleaseDate(Date value)
       The date of the version release.
       
      .google.type.Date release_date = 4;
    • clearReleaseDate

      public ImageVersion.Builder clearReleaseDate()
       The date of the version release.
       
      .google.type.Date release_date = 4;
    • getReleaseDateBuilder

      public Date.Builder getReleaseDateBuilder()
       The date of the version release.
       
      .google.type.Date release_date = 4;
    • getReleaseDateOrBuilder

      public DateOrBuilder getReleaseDateOrBuilder()
       The date of the version release.
       
      .google.type.Date release_date = 4;
      Specified by:
      getReleaseDateOrBuilder in interface ImageVersionOrBuilder
    • getCreationDisabled

      public boolean getCreationDisabled()
       Whether it is impossible to create an environment with the image version.
       
      bool creation_disabled = 5;
      Specified by:
      getCreationDisabled in interface ImageVersionOrBuilder
      Returns:
      The creationDisabled.
    • setCreationDisabled

      public ImageVersion.Builder setCreationDisabled(boolean value)
       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

      public ImageVersion.Builder 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:
      getUpgradeDisabled in interface ImageVersionOrBuilder
      Returns:
      The upgradeDisabled.
    • setUpgradeDisabled

      public ImageVersion.Builder setUpgradeDisabled(boolean value)
       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

      public ImageVersion.Builder clearUpgradeDisabled()
       Whether it is impossible to upgrade an environment running with the image
       version.
       
      bool upgrade_disabled = 6;
      Returns:
      This builder for chaining.