Class MigrationError (1.14.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
TypeDescription
int

CODE_FIELD_NUMBER

public static final int CODE_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_MESSAGE_FIELD_NUMBER

public static final int ERROR_MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_TIME_FIELD_NUMBER

public static final int ERROR_TIME_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int HELP_LINKS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MigrationError getDefaultInstance()
Returns
TypeDescription
MigrationError

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static MigrationError.Builder newBuilder()
Returns
TypeDescription
MigrationError.Builder

newBuilder(MigrationError prototype)

public static MigrationError.Builder newBuilder(MigrationError prototype)
Parameter
NameDescription
prototypeMigrationError
Returns
TypeDescription
MigrationError.Builder

parseDelimitedFrom(InputStream input)

public static MigrationError parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MigrationError
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MigrationError parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationError
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MigrationError parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MigrationError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MigrationError parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MigrationError parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MigrationError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MigrationError parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MigrationError parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MigrationError
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MigrationError parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationError
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MigrationError parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MigrationError
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MigrationError parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationError
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MigrationError parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MigrationError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MigrationError parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationError
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MigrationError> parser()
Returns
TypeDescription
Parser<MigrationError>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public MigrationError getDefaultInstanceForType()
Returns
TypeDescription
MigrationError

getErrorMessage()

public LocalizedMessage getErrorMessage()

Output only. The localized error message.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.rpc.Help.LinkOrBuilder>

getParserForType()

public Parser<MigrationError> getParserForType()
Returns
TypeDescription
Parser<MigrationError>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the errorTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MigrationError.Builder newBuilderForType()
Returns
TypeDescription
MigrationError.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MigrationError.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MigrationError.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MigrationError.Builder toBuilder()
Returns
TypeDescription
MigrationError.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException