Class UpgradeHistoryEntry.Builder (1.42.0)

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

The entry of VM image upgrade history.

Protobuf type google.cloud.notebooks.v2.UpgradeHistoryEntry

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpgradeHistoryEntry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpgradeHistoryEntry.Builder
Overrides

build()

public UpgradeHistoryEntry build()
Returns
Type Description
UpgradeHistoryEntry

buildPartial()

public UpgradeHistoryEntry buildPartial()
Returns
Type Description
UpgradeHistoryEntry

clear()

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

clearAction()

public UpgradeHistoryEntry.Builder clearAction()

Optional. Action. Rolloback or Upgrade.

.google.cloud.notebooks.v2.UpgradeHistoryEntry.Action action = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

clearContainerImage()

public UpgradeHistoryEntry.Builder clearContainerImage()

Optional. The container image before this instance upgrade.

string container_image = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

clearCreateTime()

public UpgradeHistoryEntry.Builder clearCreateTime()

Immutable. The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
UpgradeHistoryEntry.Builder

clearField(Descriptors.FieldDescriptor field)

public UpgradeHistoryEntry.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpgradeHistoryEntry.Builder
Overrides

clearFramework()

public UpgradeHistoryEntry.Builder clearFramework()

Optional. The framework of this notebook instance.

string framework = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpgradeHistoryEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpgradeHistoryEntry.Builder
Overrides

clearSnapshot()

public UpgradeHistoryEntry.Builder clearSnapshot()

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

string snapshot = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

clearState()

public UpgradeHistoryEntry.Builder clearState()

Output only. The state of this instance upgrade history entry.

.google.cloud.notebooks.v2.UpgradeHistoryEntry.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

clearTargetVersion()

public UpgradeHistoryEntry.Builder clearTargetVersion()

Optional. Target VM Version, like m63.

string target_version = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

clearVersion()

public UpgradeHistoryEntry.Builder clearVersion()

Optional. The version of the notebook instance before this upgrade.

string version = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

clearVmImage()

public UpgradeHistoryEntry.Builder clearVmImage()

Optional. The VM image before this instance upgrade.

string vm_image = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

clone()

public UpgradeHistoryEntry.Builder clone()
Returns
Type Description
UpgradeHistoryEntry.Builder
Overrides

getAction()

public UpgradeHistoryEntry.Action getAction()

Optional. Action. Rolloback or Upgrade.

.google.cloud.notebooks.v2.UpgradeHistoryEntry.Action action = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpgradeHistoryEntry.Action

The action.

getActionValue()

public int getActionValue()

Optional. Action. Rolloback or Upgrade.

.google.cloud.notebooks.v2.UpgradeHistoryEntry.Action action = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for action.

getContainerImage()

public String getContainerImage()

Optional. The container image before this instance upgrade.

string container_image = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The containerImage.

getContainerImageBytes()

public ByteString getContainerImageBytes()

Optional. The container image before this instance upgrade.

string container_image = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for containerImage.

getCreateTime()

public Timestamp getCreateTime()

Immutable. The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Immutable. The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Immutable. The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public UpgradeHistoryEntry getDefaultInstanceForType()
Returns
Type Description
UpgradeHistoryEntry

getDescriptorForType()

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

getFramework()

public String getFramework()

Optional. The framework of this notebook instance.

string framework = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The framework.

getFrameworkBytes()

public ByteString getFrameworkBytes()

Optional. The framework of this notebook instance.

string framework = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for framework.

getSnapshot()

public String getSnapshot()

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

string snapshot = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The snapshot.

getSnapshotBytes()

public ByteString getSnapshotBytes()

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

string snapshot = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for snapshot.

getState()

public UpgradeHistoryEntry.State getState()

Output only. The state of this instance upgrade history entry.

.google.cloud.notebooks.v2.UpgradeHistoryEntry.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UpgradeHistoryEntry.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of this instance upgrade history entry.

.google.cloud.notebooks.v2.UpgradeHistoryEntry.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTargetVersion()

public String getTargetVersion()

Optional. Target VM Version, like m63.

string target_version = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The targetVersion.

getTargetVersionBytes()

public ByteString getTargetVersionBytes()

Optional. Target VM Version, like m63.

string target_version = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for targetVersion.

getVersion()

public String getVersion()

Optional. The version of the notebook instance before this upgrade.

string version = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Optional. The version of the notebook instance before this upgrade.

string version = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for version.

getVmImage()

public String getVmImage()

Optional. The VM image before this instance upgrade.

string vm_image = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The vmImage.

getVmImageBytes()

public ByteString getVmImageBytes()

Optional. The VM image before this instance upgrade.

string vm_image = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for vmImage.

hasCreateTime()

public boolean hasCreateTime()

Immutable. The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public UpgradeHistoryEntry.Builder mergeCreateTime(Timestamp value)

Immutable. The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value Timestamp
Returns
Type Description
UpgradeHistoryEntry.Builder

mergeFrom(UpgradeHistoryEntry other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpgradeHistoryEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpgradeHistoryEntry.Builder
Overrides

setAction(UpgradeHistoryEntry.Action value)

public UpgradeHistoryEntry.Builder setAction(UpgradeHistoryEntry.Action value)

Optional. Action. Rolloback or Upgrade.

.google.cloud.notebooks.v2.UpgradeHistoryEntry.Action action = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value UpgradeHistoryEntry.Action

The action to set.

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

setActionValue(int value)

public UpgradeHistoryEntry.Builder setActionValue(int value)

Optional. Action. Rolloback or Upgrade.

.google.cloud.notebooks.v2.UpgradeHistoryEntry.Action action = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

setContainerImage(String value)

public UpgradeHistoryEntry.Builder setContainerImage(String value)

Optional. The container image before this instance upgrade.

string container_image = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The containerImage to set.

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

setContainerImageBytes(ByteString value)

public UpgradeHistoryEntry.Builder setContainerImageBytes(ByteString value)

Optional. The container image before this instance upgrade.

string container_image = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for containerImage to set.

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public UpgradeHistoryEntry.Builder setCreateTime(Timestamp value)

Immutable. The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value Timestamp
Returns
Type Description
UpgradeHistoryEntry.Builder

setCreateTime(Timestamp.Builder builderForValue)

public UpgradeHistoryEntry.Builder setCreateTime(Timestamp.Builder builderForValue)

Immutable. The time that this instance upgrade history entry is created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpgradeHistoryEntry.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpgradeHistoryEntry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpgradeHistoryEntry.Builder
Overrides

setFramework(String value)

public UpgradeHistoryEntry.Builder setFramework(String value)

Optional. The framework of this notebook instance.

string framework = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The framework to set.

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

setFrameworkBytes(ByteString value)

public UpgradeHistoryEntry.Builder setFrameworkBytes(ByteString value)

Optional. The framework of this notebook instance.

string framework = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for framework to set.

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

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

public UpgradeHistoryEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpgradeHistoryEntry.Builder
Overrides

setSnapshot(String value)

public UpgradeHistoryEntry.Builder setSnapshot(String value)

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

string snapshot = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The snapshot to set.

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

setSnapshotBytes(ByteString value)

public UpgradeHistoryEntry.Builder setSnapshotBytes(ByteString value)

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

string snapshot = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for snapshot to set.

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

setState(UpgradeHistoryEntry.State value)

public UpgradeHistoryEntry.Builder setState(UpgradeHistoryEntry.State value)

Output only. The state of this instance upgrade history entry.

.google.cloud.notebooks.v2.UpgradeHistoryEntry.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value UpgradeHistoryEntry.State

The state to set.

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

setStateValue(int value)

public UpgradeHistoryEntry.Builder setStateValue(int value)

Output only. The state of this instance upgrade history entry.

.google.cloud.notebooks.v2.UpgradeHistoryEntry.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

setTargetVersion(String value)

public UpgradeHistoryEntry.Builder setTargetVersion(String value)

Optional. Target VM Version, like m63.

string target_version = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The targetVersion to set.

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

setTargetVersionBytes(ByteString value)

public UpgradeHistoryEntry.Builder setTargetVersionBytes(ByteString value)

Optional. Target VM Version, like m63.

string target_version = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for targetVersion to set.

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final UpgradeHistoryEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpgradeHistoryEntry.Builder
Overrides

setVersion(String value)

public UpgradeHistoryEntry.Builder setVersion(String value)

Optional. The version of the notebook instance before this upgrade.

string version = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The version to set.

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public UpgradeHistoryEntry.Builder setVersionBytes(ByteString value)

Optional. The version of the notebook instance before this upgrade.

string version = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

setVmImage(String value)

public UpgradeHistoryEntry.Builder setVmImage(String value)

Optional. The VM image before this instance upgrade.

string vm_image = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The vmImage to set.

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.

setVmImageBytes(ByteString value)

public UpgradeHistoryEntry.Builder setVmImageBytes(ByteString value)

Optional. The VM image before this instance upgrade.

string vm_image = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for vmImage to set.

Returns
Type Description
UpgradeHistoryEntry.Builder

This builder for chaining.