Class UpgradeStatus.Builder (1.51.0)

public static final class UpgradeStatus.Builder extends GeneratedMessageV3.Builder<UpgradeStatus.Builder> implements UpgradeStatusOrBuilder

UpgradeStatus contains information about upgradeAppliance operation.

Protobuf type google.cloud.vmmigration.v1.UpgradeStatus

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpgradeStatus build()
Returns
Type Description
UpgradeStatus

buildPartial()

public UpgradeStatus buildPartial()
Returns
Type Description
UpgradeStatus

clear()

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

clearError()

public UpgradeStatus.Builder clearError()

Provides details on the state of the upgrade operation in case of an error.

.google.rpc.Status error = 3;

Returns
Type Description
UpgradeStatus.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreviousVersion()

public UpgradeStatus.Builder clearPreviousVersion()

The version from which we upgraded.

string previous_version = 5;

Returns
Type Description
UpgradeStatus.Builder

This builder for chaining.

clearStartTime()

public UpgradeStatus.Builder clearStartTime()

The time the operation was started.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
UpgradeStatus.Builder

clearState()

public UpgradeStatus.Builder clearState()

The state of the upgradeAppliance operation.

.google.cloud.vmmigration.v1.UpgradeStatus.State state = 2;

Returns
Type Description
UpgradeStatus.Builder

This builder for chaining.

clearVersion()

public UpgradeStatus.Builder clearVersion()

The version to upgrade to.

string version = 1;

Returns
Type Description
UpgradeStatus.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UpgradeStatus getDefaultInstanceForType()
Returns
Type Description
UpgradeStatus

getDescriptorForType()

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

getError()

public Status getError()

Provides details on the state of the upgrade operation in case of an error.

.google.rpc.Status error = 3;

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Provides details on the state of the upgrade operation in case of an error.

.google.rpc.Status error = 3;

Returns
Type Description
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Provides details on the state of the upgrade operation in case of an error.

.google.rpc.Status error = 3;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getPreviousVersion()

public String getPreviousVersion()

The version from which we upgraded.

string previous_version = 5;

Returns
Type Description
String

The previousVersion.

getPreviousVersionBytes()

public ByteString getPreviousVersionBytes()

The version from which we upgraded.

string previous_version = 5;

Returns
Type Description
ByteString

The bytes for previousVersion.

getStartTime()

public Timestamp getStartTime()

The time the operation was started.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The time the operation was started.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The time the operation was started.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
TimestampOrBuilder

getState()

public UpgradeStatus.State getState()

The state of the upgradeAppliance operation.

.google.cloud.vmmigration.v1.UpgradeStatus.State state = 2;

Returns
Type Description
UpgradeStatus.State

The state.

getStateValue()

public int getStateValue()

The state of the upgradeAppliance operation.

.google.cloud.vmmigration.v1.UpgradeStatus.State state = 2;

Returns
Type Description
int

The enum numeric value on the wire for state.

getVersion()

public String getVersion()

The version to upgrade to.

string version = 1;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version to upgrade to.

string version = 1;

Returns
Type Description
ByteString

The bytes for version.

hasError()

public boolean hasError()

Provides details on the state of the upgrade operation in case of an error.

.google.rpc.Status error = 3;

Returns
Type Description
boolean

Whether the error field is set.

hasStartTime()

public boolean hasStartTime()

The time the operation was started.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeError(Status value)

public UpgradeStatus.Builder mergeError(Status value)

Provides details on the state of the upgrade operation in case of an error.

.google.rpc.Status error = 3;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
UpgradeStatus.Builder

mergeFrom(UpgradeStatus other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public UpgradeStatus.Builder mergeStartTime(Timestamp value)

The time the operation was started.

.google.protobuf.Timestamp start_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
UpgradeStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setError(Status value)

public UpgradeStatus.Builder setError(Status value)

Provides details on the state of the upgrade operation in case of an error.

.google.rpc.Status error = 3;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
UpgradeStatus.Builder

setError(Status.Builder builderForValue)

public UpgradeStatus.Builder setError(Status.Builder builderForValue)

Provides details on the state of the upgrade operation in case of an error.

.google.rpc.Status error = 3;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
UpgradeStatus.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPreviousVersion(String value)

public UpgradeStatus.Builder setPreviousVersion(String value)

The version from which we upgraded.

string previous_version = 5;

Parameter
Name Description
value String

The previousVersion to set.

Returns
Type Description
UpgradeStatus.Builder

This builder for chaining.

setPreviousVersionBytes(ByteString value)

public UpgradeStatus.Builder setPreviousVersionBytes(ByteString value)

The version from which we upgraded.

string previous_version = 5;

Parameter
Name Description
value ByteString

The bytes for previousVersion to set.

Returns
Type Description
UpgradeStatus.Builder

This builder for chaining.

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

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

setStartTime(Timestamp value)

public UpgradeStatus.Builder setStartTime(Timestamp value)

The time the operation was started.

.google.protobuf.Timestamp start_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
UpgradeStatus.Builder

setStartTime(Timestamp.Builder builderForValue)

public UpgradeStatus.Builder setStartTime(Timestamp.Builder builderForValue)

The time the operation was started.

.google.protobuf.Timestamp start_time = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpgradeStatus.Builder

setState(UpgradeStatus.State value)

public UpgradeStatus.Builder setState(UpgradeStatus.State value)

The state of the upgradeAppliance operation.

.google.cloud.vmmigration.v1.UpgradeStatus.State state = 2;

Parameter
Name Description
value UpgradeStatus.State

The state to set.

Returns
Type Description
UpgradeStatus.Builder

This builder for chaining.

setStateValue(int value)

public UpgradeStatus.Builder setStateValue(int value)

The state of the upgradeAppliance operation.

.google.cloud.vmmigration.v1.UpgradeStatus.State state = 2;

Parameter
Name Description
value int

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

Returns
Type Description
UpgradeStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public UpgradeStatus.Builder setVersion(String value)

The version to upgrade to.

string version = 1;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
UpgradeStatus.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public UpgradeStatus.Builder setVersionBytes(ByteString value)

The version to upgrade to.

string version = 1;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
UpgradeStatus.Builder

This builder for chaining.