Class UpgradeHistoryEntry.Builder (1.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpgradeHistoryEntry build()
Returns
TypeDescription
UpgradeHistoryEntry

buildPartial()

public UpgradeHistoryEntry buildPartial()
Returns
TypeDescription
UpgradeHistoryEntry

clear()

public UpgradeHistoryEntry.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
UpgradeHistoryEntry.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFramework()

public UpgradeHistoryEntry.Builder clearFramework()

Optional. The framework of this notebook instance.

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

Returns
TypeDescription
UpgradeHistoryEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpgradeHistoryEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
UpgradeHistoryEntry.Builder

This builder for chaining.

clone()

public UpgradeHistoryEntry.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public UpgradeHistoryEntry getDefaultInstanceForType()
Returns
TypeDescription
UpgradeHistoryEntry

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFramework()

public String getFramework()

Optional. The framework of this notebook instance.

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

Returns
TypeDescription
String

The framework.

getFrameworkBytes()

public ByteString getFrameworkBytes()

Optional. The framework of this notebook instance.

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

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

The targetVersion.

getTargetVersionBytes()

public ByteString getTargetVersionBytes()

Optional. Target VM Version, like m63.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
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 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
NameDescription
valueTimestamp
Returns
TypeDescription
UpgradeHistoryEntry.Builder

mergeFrom(UpgradeHistoryEntry other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpgradeHistoryEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueUpgradeHistoryEntry.Action

The action to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The containerImage to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for containerImage to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpgradeHistoryEntry.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpgradeHistoryEntry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The framework to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for framework to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The snapshot to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for snapshot to set.

Returns
TypeDescription
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
NameDescription
valueUpgradeHistoryEntry.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The targetVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for targetVersion to set.

Returns
TypeDescription
UpgradeHistoryEntry.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final UpgradeHistoryEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The version to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
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
NameDescription
valueString

The vmImage to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for vmImage to set.

Returns
TypeDescription
UpgradeHistoryEntry.Builder

This builder for chaining.