Class MigrationError (1.43.0)

public final class MigrationError extends GeneratedMessageV3 implements MigrationErrorOrBuilder

Represents migration resource error information that can be used with google.rpc.Status message. MigrationError is used to present the user with error information in migration operations.

Protobuf type google.cloud.vmmigration.v1.MigrationError

Static Fields

ACTION_ITEM_FIELD_NUMBER

public static final int ACTION_ITEM_FIELD_NUMBER
Field Value
Type Description
int

CODE_FIELD_NUMBER

public static final int CODE_FIELD_NUMBER
Field Value
Type Description
int

ERROR_MESSAGE_FIELD_NUMBER

public static final int ERROR_MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

ERROR_TIME_FIELD_NUMBER

public static final int ERROR_TIME_FIELD_NUMBER
Field Value
Type Description
int
public static final int HELP_LINKS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MigrationError getDefaultInstance()
Returns
Type Description
MigrationError

getDescriptor()

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

newBuilder()

public static MigrationError.Builder newBuilder()
Returns
Type Description
MigrationError.Builder

newBuilder(MigrationError prototype)

public static MigrationError.Builder newBuilder(MigrationError prototype)
Parameter
Name Description
prototype MigrationError
Returns
Type Description
MigrationError.Builder

parseDelimitedFrom(InputStream input)

public static MigrationError parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MigrationError
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MigrationError parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationError
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static MigrationError parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MigrationError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MigrationError parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MigrationError parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MigrationError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MigrationError parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MigrationError parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MigrationError
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MigrationError parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationError
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static MigrationError parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MigrationError
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MigrationError parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationError
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static MigrationError parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MigrationError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MigrationError parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationError
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<MigrationError> parser()
Returns
Type Description
Parser<MigrationError>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getActionItem()

public LocalizedMessage getActionItem()

Output only. Suggested action for solving the error.

.google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.LocalizedMessage

The actionItem.

getActionItemOrBuilder()

public LocalizedMessageOrBuilder getActionItemOrBuilder()

Output only. Suggested action for solving the error.

.google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.LocalizedMessageOrBuilder

getCode()

public MigrationError.ErrorCode getCode()

Output only. The error code.

.google.cloud.vmmigration.v1.MigrationError.ErrorCode code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationError.ErrorCode

The code.

getCodeValue()

public int getCodeValue()

Output only. The error code.

.google.cloud.vmmigration.v1.MigrationError.ErrorCode code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public MigrationError getDefaultInstanceForType()
Returns
Type Description
MigrationError

getErrorMessage()

public LocalizedMessage getErrorMessage()

Output only. The localized error message.

.google.rpc.LocalizedMessage error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.LocalizedMessage

The errorMessage.

getErrorMessageOrBuilder()

public LocalizedMessageOrBuilder getErrorMessageOrBuilder()

Output only. The localized error message.

.google.rpc.LocalizedMessage error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.LocalizedMessageOrBuilder

getErrorTime()

public Timestamp getErrorTime()

Output only. The time the error occurred.

.google.protobuf.Timestamp error_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The errorTime.

getErrorTimeOrBuilder()

public TimestampOrBuilder getErrorTimeOrBuilder()

Output only. The time the error occurred.

.google.protobuf.Timestamp error_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder
public Help.Link getHelpLinks(int index)

Output only. URL(s) pointing to additional information on handling the current error.

repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Help.Link

getHelpLinksCount()

public int getHelpLinksCount()

Output only. URL(s) pointing to additional information on handling the current error.

repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int
public List<Help.Link> getHelpLinksList()

Output only. URL(s) pointing to additional information on handling the current error.

repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<com.google.rpc.Help.Link>

getHelpLinksOrBuilder(int index)

public Help.LinkOrBuilder getHelpLinksOrBuilder(int index)

Output only. URL(s) pointing to additional information on handling the current error.

repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Help.LinkOrBuilder

getHelpLinksOrBuilderList()

public List<? extends Help.LinkOrBuilder> getHelpLinksOrBuilderList()

Output only. URL(s) pointing to additional information on handling the current error.

repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.rpc.Help.LinkOrBuilder>

getParserForType()

public Parser<MigrationError> getParserForType()
Returns
Type Description
Parser<MigrationError>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasActionItem()

public boolean hasActionItem()

Output only. Suggested action for solving the error.

.google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the actionItem field is set.

hasErrorMessage()

public boolean hasErrorMessage()

Output only. The localized error message.

.google.rpc.LocalizedMessage error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the errorMessage field is set.

hasErrorTime()

public boolean hasErrorTime()

Output only. The time the error occurred.

.google.protobuf.Timestamp error_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the errorTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public MigrationError.Builder newBuilderForType()
Returns
Type Description
MigrationError.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MigrationError.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MigrationError.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public MigrationError.Builder toBuilder()
Returns
Type Description
MigrationError.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException