Class CheckInstanceUpgradabilityResponse.Builder (1.32.0)

public static final class CheckInstanceUpgradabilityResponse.Builder extends GeneratedMessageV3.Builder<CheckInstanceUpgradabilityResponse.Builder> implements CheckInstanceUpgradabilityResponseOrBuilder

Response for checking if a notebook instance is upgradeable.

Protobuf type google.cloud.notebooks.v2.CheckInstanceUpgradabilityResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CheckInstanceUpgradabilityResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder
Overrides

build()

public CheckInstanceUpgradabilityResponse build()
Returns
TypeDescription
CheckInstanceUpgradabilityResponse

buildPartial()

public CheckInstanceUpgradabilityResponse buildPartial()
Returns
TypeDescription
CheckInstanceUpgradabilityResponse

clear()

public CheckInstanceUpgradabilityResponse.Builder clear()
Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CheckInstanceUpgradabilityResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CheckInstanceUpgradabilityResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder
Overrides

clearUpgradeImage()

public CheckInstanceUpgradabilityResponse.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
TypeDescription
CheckInstanceUpgradabilityResponse.Builder

This builder for chaining.

clearUpgradeInfo()

public CheckInstanceUpgradabilityResponse.Builder clearUpgradeInfo()

Additional information about upgrade.

string upgrade_info = 3;

Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder

This builder for chaining.

clearUpgradeVersion()

public CheckInstanceUpgradabilityResponse.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
TypeDescription
CheckInstanceUpgradabilityResponse.Builder

This builder for chaining.

clearUpgradeable()

public CheckInstanceUpgradabilityResponse.Builder clearUpgradeable()

If an instance is upgradeable.

bool upgradeable = 1;

Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder

This builder for chaining.

clone()

public CheckInstanceUpgradabilityResponse.Builder clone()
Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder
Overrides

getDefaultInstanceForType()

public CheckInstanceUpgradabilityResponse getDefaultInstanceForType()
Returns
TypeDescription
CheckInstanceUpgradabilityResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for upgradeImage.

getUpgradeInfo()

public String getUpgradeInfo()

Additional information about upgrade.

string upgrade_info = 3;

Returns
TypeDescription
String

The upgradeInfo.

getUpgradeInfoBytes()

public ByteString getUpgradeInfoBytes()

Additional information about upgrade.

string upgrade_info = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for upgradeVersion.

getUpgradeable()

public boolean getUpgradeable()

If an instance is upgradeable.

bool upgradeable = 1;

Returns
TypeDescription
boolean

The upgradeable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CheckInstanceUpgradabilityResponse other)

public CheckInstanceUpgradabilityResponse.Builder mergeFrom(CheckInstanceUpgradabilityResponse other)
Parameter
NameDescription
otherCheckInstanceUpgradabilityResponse
Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CheckInstanceUpgradabilityResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CheckInstanceUpgradabilityResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CheckInstanceUpgradabilityResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CheckInstanceUpgradabilityResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder
Overrides

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

public CheckInstanceUpgradabilityResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CheckInstanceUpgradabilityResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder
Overrides

setUpgradeImage(String value)

public CheckInstanceUpgradabilityResponse.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
NameDescription
valueString

The upgradeImage to set.

Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder

This builder for chaining.

setUpgradeImageBytes(ByteString value)

public CheckInstanceUpgradabilityResponse.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
NameDescription
valueByteString

The bytes for upgradeImage to set.

Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder

This builder for chaining.

setUpgradeInfo(String value)

public CheckInstanceUpgradabilityResponse.Builder setUpgradeInfo(String value)

Additional information about upgrade.

string upgrade_info = 3;

Parameter
NameDescription
valueString

The upgradeInfo to set.

Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder

This builder for chaining.

setUpgradeInfoBytes(ByteString value)

public CheckInstanceUpgradabilityResponse.Builder setUpgradeInfoBytes(ByteString value)

Additional information about upgrade.

string upgrade_info = 3;

Parameter
NameDescription
valueByteString

The bytes for upgradeInfo to set.

Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder

This builder for chaining.

setUpgradeVersion(String value)

public CheckInstanceUpgradabilityResponse.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
NameDescription
valueString

The upgradeVersion to set.

Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder

This builder for chaining.

setUpgradeVersionBytes(ByteString value)

public CheckInstanceUpgradabilityResponse.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
NameDescription
valueByteString

The bytes for upgradeVersion to set.

Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder

This builder for chaining.

setUpgradeable(boolean value)

public CheckInstanceUpgradabilityResponse.Builder setUpgradeable(boolean value)

If an instance is upgradeable.

bool upgradeable = 1;

Parameter
NameDescription
valueboolean

The upgradeable to set.

Returns
TypeDescription
CheckInstanceUpgradabilityResponse.Builder

This builder for chaining.