Class CheckUpgradeRequest.Builder (1.78.0)

publicstaticfinalclass CheckUpgradeRequest.BuilderextendsGeneratedMessageV3.Builder<CheckUpgradeRequest.Builder>implementsCheckUpgradeRequestOrBuilder

Request to check whether image upgrade will succeed.

Protobuf type google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCheckUpgradeRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CheckUpgradeRequest.Builder
Overrides

build()

publicCheckUpgradeRequestbuild()
Returns
Type Description
CheckUpgradeRequest

buildPartial()

publicCheckUpgradeRequestbuildPartial()
Returns
Type Description
CheckUpgradeRequest

clear()

publicCheckUpgradeRequest.Builderclear()
Returns
Type Description
CheckUpgradeRequest.Builder
Overrides

clearEnvironment()

publicCheckUpgradeRequest.BuilderclearEnvironment()

The resource name of the environment to check upgrade for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"

string environment = 1;

Returns
Type Description
CheckUpgradeRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicCheckUpgradeRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CheckUpgradeRequest.Builder
Overrides

clearImageVersion()

publicCheckUpgradeRequest.BuilderclearImageVersion()

The version of the software running in the environment. This encapsulates both the version of Cloud Composer functionality and the version of Apache Airflow. It must match the regular expression composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?). When used as input, the server also checks if the provided version is supported and denies the request for an unsupported version.

The Cloud Composer portion of the image version is a full semantic version, or an alias in the form of major version number or latest. When an alias is provided, the server replaces it with the current Cloud Composer version that satisfies the alias.

The Apache Airflow portion of the image version is a full semantic version that points to one of the supported Apache Airflow versions, or an alias in the form of only major or major.minor versions specified. When an alias is provided, the server replaces it with the latest Apache Airflow version that satisfies the alias and is supported in the given Cloud Composer version.

In all cases, the resolved image version is stored in the same field.

See also version list and versioning overview.

string image_version = 2;

Returns
Type Description
CheckUpgradeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicCheckUpgradeRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CheckUpgradeRequest.Builder
Overrides

clone()

publicCheckUpgradeRequest.Builderclone()
Returns
Type Description
CheckUpgradeRequest.Builder
Overrides

getDefaultInstanceForType()

publicCheckUpgradeRequestgetDefaultInstanceForType()
Returns
Type Description
CheckUpgradeRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnvironment()

publicStringgetEnvironment()

The resource name of the environment to check upgrade for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"

string environment = 1;

Returns
Type Description
String

The environment.

getEnvironmentBytes()

publicByteStringgetEnvironmentBytes()

The resource name of the environment to check upgrade for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"

string environment = 1;

Returns
Type Description
ByteString

The bytes for environment.

getImageVersion()

publicStringgetImageVersion()

The version of the software running in the environment. This encapsulates both the version of Cloud Composer functionality and the version of Apache Airflow. It must match the regular expression composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?). When used as input, the server also checks if the provided version is supported and denies the request for an unsupported version.

The Cloud Composer portion of the image version is a full semantic version, or an alias in the form of major version number or latest. When an alias is provided, the server replaces it with the current Cloud Composer version that satisfies the alias.

The Apache Airflow portion of the image version is a full semantic version that points to one of the supported Apache Airflow versions, or an alias in the form of only major or major.minor versions specified. When an alias is provided, the server replaces it with the latest Apache Airflow version that satisfies the alias and is supported in the given Cloud Composer version.

In all cases, the resolved image version is stored in the same field.

See also version list and versioning overview.

string image_version = 2;

Returns
Type Description
String

The imageVersion.

getImageVersionBytes()

publicByteStringgetImageVersionBytes()

The version of the software running in the environment. This encapsulates both the version of Cloud Composer functionality and the version of Apache Airflow. It must match the regular expression composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?). When used as input, the server also checks if the provided version is supported and denies the request for an unsupported version.

The Cloud Composer portion of the image version is a full semantic version, or an alias in the form of major version number or latest. When an alias is provided, the server replaces it with the current Cloud Composer version that satisfies the alias.

The Apache Airflow portion of the image version is a full semantic version that points to one of the supported Apache Airflow versions, or an alias in the form of only major or major.minor versions specified. When an alias is provided, the server replaces it with the latest Apache Airflow version that satisfies the alias and is supported in the given Cloud Composer version.

In all cases, the resolved image version is stored in the same field.

See also version list and versioning overview.

string image_version = 2;

Returns
Type Description
ByteString

The bytes for imageVersion.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CheckUpgradeRequest other)

publicCheckUpgradeRequest.BuildermergeFrom(CheckUpgradeRequestother)
Parameter
Name Description
other CheckUpgradeRequest
Returns
Type Description
CheckUpgradeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCheckUpgradeRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CheckUpgradeRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicCheckUpgradeRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CheckUpgradeRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCheckUpgradeRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CheckUpgradeRequest.Builder
Overrides

setEnvironment(String value)

publicCheckUpgradeRequest.BuildersetEnvironment(Stringvalue)

The resource name of the environment to check upgrade for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"

string environment = 1;

Parameter
Name Description
value String

The environment to set.

Returns
Type Description
CheckUpgradeRequest.Builder

This builder for chaining.

setEnvironmentBytes(ByteString value)

publicCheckUpgradeRequest.BuildersetEnvironmentBytes(ByteStringvalue)

The resource name of the environment to check upgrade for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"

string environment = 1;

Parameter
Name Description
value ByteString

The bytes for environment to set.

Returns
Type Description
CheckUpgradeRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicCheckUpgradeRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CheckUpgradeRequest.Builder
Overrides

setImageVersion(String value)

publicCheckUpgradeRequest.BuildersetImageVersion(Stringvalue)

The version of the software running in the environment. This encapsulates both the version of Cloud Composer functionality and the version of Apache Airflow. It must match the regular expression composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?). When used as input, the server also checks if the provided version is supported and denies the request for an unsupported version.

The Cloud Composer portion of the image version is a full semantic version, or an alias in the form of major version number or latest. When an alias is provided, the server replaces it with the current Cloud Composer version that satisfies the alias.

The Apache Airflow portion of the image version is a full semantic version that points to one of the supported Apache Airflow versions, or an alias in the form of only major or major.minor versions specified. When an alias is provided, the server replaces it with the latest Apache Airflow version that satisfies the alias and is supported in the given Cloud Composer version.

In all cases, the resolved image version is stored in the same field.

See also version list and versioning overview.

string image_version = 2;

Parameter
Name Description
value String

The imageVersion to set.

Returns
Type Description
CheckUpgradeRequest.Builder

This builder for chaining.

setImageVersionBytes(ByteString value)

publicCheckUpgradeRequest.BuildersetImageVersionBytes(ByteStringvalue)

The version of the software running in the environment. This encapsulates both the version of Cloud Composer functionality and the version of Apache Airflow. It must match the regular expression composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?). When used as input, the server also checks if the provided version is supported and denies the request for an unsupported version.

The Cloud Composer portion of the image version is a full semantic version, or an alias in the form of major version number or latest. When an alias is provided, the server replaces it with the current Cloud Composer version that satisfies the alias.

The Apache Airflow portion of the image version is a full semantic version that points to one of the supported Apache Airflow versions, or an alias in the form of only major or major.minor versions specified. When an alias is provided, the server replaces it with the latest Apache Airflow version that satisfies the alias and is supported in the given Cloud Composer version.

In all cases, the resolved image version is stored in the same field.

See also version list and versioning overview.

string image_version = 2;

Parameter
Name Description
value ByteString

The bytes for imageVersion to set.

Returns
Type Description
CheckUpgradeRequest.Builder

This builder for chaining.

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

publicCheckUpgradeRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CheckUpgradeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCheckUpgradeRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CheckUpgradeRequest.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.