Class Instance.UpgradeHistoryEntry.Builder (1.26.0)

public static final class Instance.UpgradeHistoryEntry.Builder extends GeneratedMessageV3.Builder<Instance.UpgradeHistoryEntry.Builder> implements Instance.UpgradeHistoryEntryOrBuilder

The entry of VM image upgrade history.

Protobuf type google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Instance.UpgradeHistoryEntry build()
Returns
TypeDescription
Instance.UpgradeHistoryEntry

buildPartial()

public Instance.UpgradeHistoryEntry buildPartial()
Returns
TypeDescription
Instance.UpgradeHistoryEntry

clear()

public Instance.UpgradeHistoryEntry.Builder clear()
Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder
Overrides

clearAction()

public Instance.UpgradeHistoryEntry.Builder clearAction()

Action. Rolloback or Upgrade.

.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action action = 9;

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

clearContainerImage()

public Instance.UpgradeHistoryEntry.Builder clearContainerImage()

The container image before this instance upgrade.

string container_image = 3;

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

clearCreateTime()

public Instance.UpgradeHistoryEntry.Builder clearCreateTime()

The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFramework()

public Instance.UpgradeHistoryEntry.Builder clearFramework()

The framework of this notebook instance.

string framework = 4;

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSnapshot()

public Instance.UpgradeHistoryEntry.Builder clearSnapshot()

The snapshot of the boot disk of this notebook instance before upgrade.

string snapshot = 1;

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

clearState()

public Instance.UpgradeHistoryEntry.Builder clearState()

The state of this instance upgrade history entry.

.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State state = 6;

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

clearTargetImage() (deprecated)

public Instance.UpgradeHistoryEntry.Builder clearTargetImage()

Deprecated. google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is deprecated. See google/cloud/notebooks/v1/instance.proto;l=352

Target VM Image. Format: ainotebooks-vm/project/image-name/name.

string target_image = 8 [deprecated = true];

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

clearTargetVersion()

public Instance.UpgradeHistoryEntry.Builder clearTargetVersion()

Target VM Version, like m63.

string target_version = 10;

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

clearVersion()

public Instance.UpgradeHistoryEntry.Builder clearVersion()

The version of the notebook instance before this upgrade.

string version = 5;

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

clearVmImage()

public Instance.UpgradeHistoryEntry.Builder clearVmImage()

The VM image before this instance upgrade.

string vm_image = 2;

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

clone()

public Instance.UpgradeHistoryEntry.Builder clone()
Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder
Overrides

getAction()

public Instance.UpgradeHistoryEntry.Action getAction()

Action. Rolloback or Upgrade.

.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action action = 9;

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Action

The action.

getActionValue()

public int getActionValue()

Action. Rolloback or Upgrade.

.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action action = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for action.

getContainerImage()

public String getContainerImage()

The container image before this instance upgrade.

string container_image = 3;

Returns
TypeDescription
String

The containerImage.

getContainerImageBytes()

public ByteString getContainerImageBytes()

The container image before this instance upgrade.

string container_image = 3;

Returns
TypeDescription
ByteString

The bytes for containerImage.

getCreateTime()

public Timestamp getCreateTime()

The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Instance.UpgradeHistoryEntry getDefaultInstanceForType()
Returns
TypeDescription
Instance.UpgradeHistoryEntry

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFramework()

public String getFramework()

The framework of this notebook instance.

string framework = 4;

Returns
TypeDescription
String

The framework.

getFrameworkBytes()

public ByteString getFrameworkBytes()

The framework of this notebook instance.

string framework = 4;

Returns
TypeDescription
ByteString

The bytes for framework.

getSnapshot()

public String getSnapshot()

The snapshot of the boot disk of this notebook instance before upgrade.

string snapshot = 1;

Returns
TypeDescription
String

The snapshot.

getSnapshotBytes()

public ByteString getSnapshotBytes()

The snapshot of the boot disk of this notebook instance before upgrade.

string snapshot = 1;

Returns
TypeDescription
ByteString

The bytes for snapshot.

getState()

public Instance.UpgradeHistoryEntry.State getState()

The state of this instance upgrade history entry.

.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State state = 6;

Returns
TypeDescription
Instance.UpgradeHistoryEntry.State

The state.

getStateValue()

public int getStateValue()

The state of this instance upgrade history entry.

.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State state = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getTargetImage() (deprecated)

public String getTargetImage()

Deprecated. google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is deprecated. See google/cloud/notebooks/v1/instance.proto;l=352

Target VM Image. Format: ainotebooks-vm/project/image-name/name.

string target_image = 8 [deprecated = true];

Returns
TypeDescription
String

The targetImage.

getTargetImageBytes() (deprecated)

public ByteString getTargetImageBytes()

Deprecated. google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is deprecated. See google/cloud/notebooks/v1/instance.proto;l=352

Target VM Image. Format: ainotebooks-vm/project/image-name/name.

string target_image = 8 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for targetImage.

getTargetVersion()

public String getTargetVersion()

Target VM Version, like m63.

string target_version = 10;

Returns
TypeDescription
String

The targetVersion.

getTargetVersionBytes()

public ByteString getTargetVersionBytes()

Target VM Version, like m63.

string target_version = 10;

Returns
TypeDescription
ByteString

The bytes for targetVersion.

getVersion()

public String getVersion()

The version of the notebook instance before this upgrade.

string version = 5;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version of the notebook instance before this upgrade.

string version = 5;

Returns
TypeDescription
ByteString

The bytes for version.

getVmImage()

public String getVmImage()

The VM image before this instance upgrade.

string vm_image = 2;

Returns
TypeDescription
String

The vmImage.

getVmImageBytes()

public ByteString getVmImageBytes()

The VM image before this instance upgrade.

string vm_image = 2;

Returns
TypeDescription
ByteString

The bytes for vmImage.

hasCreateTime()

public boolean hasCreateTime()

The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Instance.UpgradeHistoryEntry.Builder mergeCreateTime(Timestamp value)

The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

mergeFrom(Instance.UpgradeHistoryEntry other)

public Instance.UpgradeHistoryEntry.Builder mergeFrom(Instance.UpgradeHistoryEntry other)
Parameter
NameDescription
otherInstance.UpgradeHistoryEntry
Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAction(Instance.UpgradeHistoryEntry.Action value)

public Instance.UpgradeHistoryEntry.Builder setAction(Instance.UpgradeHistoryEntry.Action value)

Action. Rolloback or Upgrade.

.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action action = 9;

Parameter
NameDescription
valueInstance.UpgradeHistoryEntry.Action

The action to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setActionValue(int value)

public Instance.UpgradeHistoryEntry.Builder setActionValue(int value)

Action. Rolloback or Upgrade.

.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action action = 9;

Parameter
NameDescription
valueint

The enum numeric value on the wire for action to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setContainerImage(String value)

public Instance.UpgradeHistoryEntry.Builder setContainerImage(String value)

The container image before this instance upgrade.

string container_image = 3;

Parameter
NameDescription
valueString

The containerImage to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setContainerImageBytes(ByteString value)

public Instance.UpgradeHistoryEntry.Builder setContainerImageBytes(ByteString value)

The container image before this instance upgrade.

string container_image = 3;

Parameter
NameDescription
valueByteString

The bytes for containerImage to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Instance.UpgradeHistoryEntry.Builder setCreateTime(Timestamp value)

The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Instance.UpgradeHistoryEntry.Builder setCreateTime(Timestamp.Builder builderForValue)

The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFramework(String value)

public Instance.UpgradeHistoryEntry.Builder setFramework(String value)

The framework of this notebook instance.

string framework = 4;

Parameter
NameDescription
valueString

The framework to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setFrameworkBytes(ByteString value)

public Instance.UpgradeHistoryEntry.Builder setFrameworkBytes(ByteString value)

The framework of this notebook instance.

string framework = 4;

Parameter
NameDescription
valueByteString

The bytes for framework to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

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

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

setSnapshot(String value)

public Instance.UpgradeHistoryEntry.Builder setSnapshot(String value)

The snapshot of the boot disk of this notebook instance before upgrade.

string snapshot = 1;

Parameter
NameDescription
valueString

The snapshot to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setSnapshotBytes(ByteString value)

public Instance.UpgradeHistoryEntry.Builder setSnapshotBytes(ByteString value)

The snapshot of the boot disk of this notebook instance before upgrade.

string snapshot = 1;

Parameter
NameDescription
valueByteString

The bytes for snapshot to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setState(Instance.UpgradeHistoryEntry.State value)

public Instance.UpgradeHistoryEntry.Builder setState(Instance.UpgradeHistoryEntry.State value)

The state of this instance upgrade history entry.

.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State state = 6;

Parameter
NameDescription
valueInstance.UpgradeHistoryEntry.State

The state to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setStateValue(int value)

public Instance.UpgradeHistoryEntry.Builder setStateValue(int value)

The state of this instance upgrade history entry.

.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State state = 6;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setTargetImage(String value) (deprecated)

public Instance.UpgradeHistoryEntry.Builder setTargetImage(String value)

Deprecated. google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is deprecated. See google/cloud/notebooks/v1/instance.proto;l=352

Target VM Image. Format: ainotebooks-vm/project/image-name/name.

string target_image = 8 [deprecated = true];

Parameter
NameDescription
valueString

The targetImage to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setTargetImageBytes(ByteString value) (deprecated)

public Instance.UpgradeHistoryEntry.Builder setTargetImageBytes(ByteString value)

Deprecated. google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is deprecated. See google/cloud/notebooks/v1/instance.proto;l=352

Target VM Image. Format: ainotebooks-vm/project/image-name/name.

string target_image = 8 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for targetImage to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setTargetVersion(String value)

public Instance.UpgradeHistoryEntry.Builder setTargetVersion(String value)

Target VM Version, like m63.

string target_version = 10;

Parameter
NameDescription
valueString

The targetVersion to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setTargetVersionBytes(ByteString value)

public Instance.UpgradeHistoryEntry.Builder setTargetVersionBytes(ByteString value)

Target VM Version, like m63.

string target_version = 10;

Parameter
NameDescription
valueByteString

The bytes for targetVersion to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public Instance.UpgradeHistoryEntry.Builder setVersion(String value)

The version of the notebook instance before this upgrade.

string version = 5;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public Instance.UpgradeHistoryEntry.Builder setVersionBytes(ByteString value)

The version of the notebook instance before this upgrade.

string version = 5;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setVmImage(String value)

public Instance.UpgradeHistoryEntry.Builder setVmImage(String value)

The VM image before this instance upgrade.

string vm_image = 2;

Parameter
NameDescription
valueString

The vmImage to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.

setVmImageBytes(ByteString value)

public Instance.UpgradeHistoryEntry.Builder setVmImageBytes(ByteString value)

The VM image before this instance upgrade.

string vm_image = 2;

Parameter
NameDescription
valueByteString

The bytes for vmImage to set.

Returns
TypeDescription
Instance.UpgradeHistoryEntry.Builder

This builder for chaining.