Class FetchClusterUpgradeInfoRequest.Builder (2.86.0)

public static final class FetchClusterUpgradeInfoRequest.Builder extends GeneratedMessage.Builder<FetchClusterUpgradeInfoRequest.Builder> implements FetchClusterUpgradeInfoRequestOrBuilder

FetchClusterUpgradeInfoRequest fetches the upgrade information of a cluster.

Protobuf type google.container.v1beta1.FetchClusterUpgradeInfoRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public FetchClusterUpgradeInfoRequest build()
Returns
Type Description
FetchClusterUpgradeInfoRequest

buildPartial()

public FetchClusterUpgradeInfoRequest buildPartial()
Returns
Type Description
FetchClusterUpgradeInfoRequest

clear()

public FetchClusterUpgradeInfoRequest.Builder clear()
Returns
Type Description
FetchClusterUpgradeInfoRequest.Builder
Overrides

clearName()

public FetchClusterUpgradeInfoRequest.Builder clearName()

Required. The name (project, location, cluster) of the cluster to get. Specified in the format projects/*/locations/*/clusters/* or projects/*/zones/*/clusters/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FetchClusterUpgradeInfoRequest.Builder

This builder for chaining.

clearVersion()

public FetchClusterUpgradeInfoRequest.Builder clearVersion()

API request version that initiates this operation.

string version = 100;

Returns
Type Description
FetchClusterUpgradeInfoRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public FetchClusterUpgradeInfoRequest getDefaultInstanceForType()
Returns
Type Description
FetchClusterUpgradeInfoRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. The name (project, location, cluster) of the cluster to get. Specified in the format projects/*/locations/*/clusters/* or projects/*/zones/*/clusters/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name (project, location, cluster) of the cluster to get. Specified in the format projects/*/locations/*/clusters/* or projects/*/zones/*/clusters/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getVersion()

public String getVersion()

API request version that initiates this operation.

string version = 100;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

API request version that initiates this operation.

string version = 100;

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchClusterUpgradeInfoRequest other)

public FetchClusterUpgradeInfoRequest.Builder mergeFrom(FetchClusterUpgradeInfoRequest other)
Parameter
Name Description
other FetchClusterUpgradeInfoRequest
Returns
Type Description
FetchClusterUpgradeInfoRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FetchClusterUpgradeInfoRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FetchClusterUpgradeInfoRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FetchClusterUpgradeInfoRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FetchClusterUpgradeInfoRequest.Builder
Overrides

setName(String value)

public FetchClusterUpgradeInfoRequest.Builder setName(String value)

Required. The name (project, location, cluster) of the cluster to get. Specified in the format projects/*/locations/*/clusters/* or projects/*/zones/*/clusters/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
FetchClusterUpgradeInfoRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public FetchClusterUpgradeInfoRequest.Builder setNameBytes(ByteString value)

Required. The name (project, location, cluster) of the cluster to get. Specified in the format projects/*/locations/*/clusters/* or projects/*/zones/*/clusters/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
FetchClusterUpgradeInfoRequest.Builder

This builder for chaining.

setVersion(String value)

public FetchClusterUpgradeInfoRequest.Builder setVersion(String value)

API request version that initiates this operation.

string version = 100;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
FetchClusterUpgradeInfoRequest.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public FetchClusterUpgradeInfoRequest.Builder setVersionBytes(ByteString value)

API request version that initiates this operation.

string version = 100;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
FetchClusterUpgradeInfoRequest.Builder

This builder for chaining.