Class UpgradeStatus.Builder (1.23.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpgradeStatus build()
Returns
TypeDescription
UpgradeStatus

buildPartial()

public UpgradeStatus buildPartial()
Returns
TypeDescription
UpgradeStatus

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreviousVersion()

public UpgradeStatus.Builder clearPreviousVersion()

The version from which we upgraded.

string previous_version = 5;

Returns
TypeDescription
UpgradeStatus.Builder

This builder for chaining.

clearStartTime()

public UpgradeStatus.Builder clearStartTime()

The time the operation was started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
UpgradeStatus.Builder

clearState()

public UpgradeStatus.Builder clearState()

The state of the upgradeAppliance operation.

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

Returns
TypeDescription
UpgradeStatus.Builder

This builder for chaining.

clearVersion()

public UpgradeStatus.Builder clearVersion()

The version to upgrade to.

string version = 1;

Returns
TypeDescription
UpgradeStatus.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UpgradeStatus getDefaultInstanceForType()
Returns
TypeDescription
UpgradeStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
com.google.rpc.StatusOrBuilder

getPreviousVersion()

public String getPreviousVersion()

The version from which we upgraded.

string previous_version = 5;

Returns
TypeDescription
String

The previousVersion.

getPreviousVersionBytes()

public ByteString getPreviousVersionBytes()

The version from which we upgraded.

string previous_version = 5;

Returns
TypeDescription
ByteString

The bytes for previousVersion.

getStartTime()

public Timestamp getStartTime()

The time the operation was started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The time the operation was started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The time the operation was started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getState()

public UpgradeStatus.State getState()

The state of the upgradeAppliance operation.

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

Returns
TypeDescription
UpgradeStatus.State

The state.

getStateValue()

public int getStateValue()

The state of the upgradeAppliance operation.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getVersion()

public String getVersion()

The version to upgrade to.

string version = 1;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version to upgrade to.

string version = 1;

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

Whether the error field is set.

hasStartTime()

public boolean hasStartTime()

The time the operation was started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
UpgradeStatus.Builder

mergeFrom(UpgradeStatus other)

public UpgradeStatus.Builder mergeFrom(UpgradeStatus other)
Parameter
NameDescription
otherUpgradeStatus
Returns
TypeDescription
UpgradeStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UpgradeStatus.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
UpgradeStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpgradeStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
UpgradeStatus.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPreviousVersion(String value)

public UpgradeStatus.Builder setPreviousVersion(String value)

The version from which we upgraded.

string previous_version = 5;

Parameter
NameDescription
valueString

The previousVersion to set.

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

The bytes for previousVersion to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueUpgradeStatus.State

The state to set.

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

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

Returns
TypeDescription
UpgradeStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public UpgradeStatus.Builder setVersion(String value)

The version to upgrade to.

string version = 1;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
UpgradeStatus.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public UpgradeStatus.Builder setVersionBytes(ByteString value)

The version to upgrade to.

string version = 1;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
UpgradeStatus.Builder

This builder for chaining.