Class IsInstanceUpgradeableResponse.Builder (1.81.0)

public static final class IsInstanceUpgradeableResponse.Builder extends GeneratedMessage.Builder<IsInstanceUpgradeableResponse.Builder> implements IsInstanceUpgradeableResponseOrBuilder

Response for checking if a notebook instance is upgradeable.

Protobuf type google.cloud.notebooks.v1.IsInstanceUpgradeableResponse

Static Methods

getDescriptor()

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

Methods

build()

public IsInstanceUpgradeableResponse build()
Returns
Type Description
IsInstanceUpgradeableResponse

buildPartial()

public IsInstanceUpgradeableResponse buildPartial()
Returns
Type Description
IsInstanceUpgradeableResponse

clear()

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

clearUpgradeImage()

public IsInstanceUpgradeableResponse.Builder clearUpgradeImage()

The new image self link this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.

string upgrade_image = 4;

Returns
Type Description
IsInstanceUpgradeableResponse.Builder

This builder for chaining.

clearUpgradeInfo()

public IsInstanceUpgradeableResponse.Builder clearUpgradeInfo()

Additional information about upgrade.

string upgrade_info = 3;

Returns
Type Description
IsInstanceUpgradeableResponse.Builder

This builder for chaining.

clearUpgradeVersion()

public IsInstanceUpgradeableResponse.Builder clearUpgradeVersion()

The version this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.

string upgrade_version = 2;

Returns
Type Description
IsInstanceUpgradeableResponse.Builder

This builder for chaining.

clearUpgradeable()

public IsInstanceUpgradeableResponse.Builder clearUpgradeable()

If an instance is upgradeable.

bool upgradeable = 1;

Returns
Type Description
IsInstanceUpgradeableResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public IsInstanceUpgradeableResponse getDefaultInstanceForType()
Returns
Type Description
IsInstanceUpgradeableResponse

getDescriptorForType()

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

getUpgradeImage()

public String getUpgradeImage()

The new image self link this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.

string upgrade_image = 4;

Returns
Type Description
String

The upgradeImage.

getUpgradeImageBytes()

public ByteString getUpgradeImageBytes()

The new image self link this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.

string upgrade_image = 4;

Returns
Type Description
ByteString

The bytes for upgradeImage.

getUpgradeInfo()

public String getUpgradeInfo()

Additional information about upgrade.

string upgrade_info = 3;

Returns
Type Description
String

The upgradeInfo.

getUpgradeInfoBytes()

public ByteString getUpgradeInfoBytes()

Additional information about upgrade.

string upgrade_info = 3;

Returns
Type Description
ByteString

The bytes for upgradeInfo.

getUpgradeVersion()

public String getUpgradeVersion()

The version this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.

string upgrade_version = 2;

Returns
Type Description
String

The upgradeVersion.

getUpgradeVersionBytes()

public ByteString getUpgradeVersionBytes()

The version this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.

string upgrade_version = 2;

Returns
Type Description
ByteString

The bytes for upgradeVersion.

getUpgradeable()

public boolean getUpgradeable()

If an instance is upgradeable.

bool upgradeable = 1;

Returns
Type Description
boolean

The upgradeable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IsInstanceUpgradeableResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setUpgradeImage(String value)

public IsInstanceUpgradeableResponse.Builder setUpgradeImage(String value)

The new image self link this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.

string upgrade_image = 4;

Parameter
Name Description
value String

The upgradeImage to set.

Returns
Type Description
IsInstanceUpgradeableResponse.Builder

This builder for chaining.

setUpgradeImageBytes(ByteString value)

public IsInstanceUpgradeableResponse.Builder setUpgradeImageBytes(ByteString value)

The new image self link this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.

string upgrade_image = 4;

Parameter
Name Description
value ByteString

The bytes for upgradeImage to set.

Returns
Type Description
IsInstanceUpgradeableResponse.Builder

This builder for chaining.

setUpgradeInfo(String value)

public IsInstanceUpgradeableResponse.Builder setUpgradeInfo(String value)

Additional information about upgrade.

string upgrade_info = 3;

Parameter
Name Description
value String

The upgradeInfo to set.

Returns
Type Description
IsInstanceUpgradeableResponse.Builder

This builder for chaining.

setUpgradeInfoBytes(ByteString value)

public IsInstanceUpgradeableResponse.Builder setUpgradeInfoBytes(ByteString value)

Additional information about upgrade.

string upgrade_info = 3;

Parameter
Name Description
value ByteString

The bytes for upgradeInfo to set.

Returns
Type Description
IsInstanceUpgradeableResponse.Builder

This builder for chaining.

setUpgradeVersion(String value)

public IsInstanceUpgradeableResponse.Builder setUpgradeVersion(String value)

The version this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.

string upgrade_version = 2;

Parameter
Name Description
value String

The upgradeVersion to set.

Returns
Type Description
IsInstanceUpgradeableResponse.Builder

This builder for chaining.

setUpgradeVersionBytes(ByteString value)

public IsInstanceUpgradeableResponse.Builder setUpgradeVersionBytes(ByteString value)

The version this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.

string upgrade_version = 2;

Parameter
Name Description
value ByteString

The bytes for upgradeVersion to set.

Returns
Type Description
IsInstanceUpgradeableResponse.Builder

This builder for chaining.

setUpgradeable(boolean value)

public IsInstanceUpgradeableResponse.Builder setUpgradeable(boolean value)

If an instance is upgradeable.

bool upgradeable = 1;

Parameter
Name Description
value boolean

The upgradeable to set.

Returns
Type Description
IsInstanceUpgradeableResponse.Builder

This builder for chaining.