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
CODE_FIELD_NUMBER
public static final int CODE_FIELD_NUMBER
Field Value
ERROR_MESSAGE_FIELD_NUMBER
public static final int ERROR_MESSAGE_FIELD_NUMBER
Field Value
ERROR_TIME_FIELD_NUMBER
public static final int ERROR_TIME_FIELD_NUMBER
Field Value
HELP_LINKS_FIELD_NUMBER
public static final int HELP_LINKS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static MigrationError getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static MigrationError.Builder newBuilder()
Returns
newBuilder(MigrationError prototype)
public static MigrationError.Builder newBuilder(MigrationError prototype)
Parameter
Returns
public static MigrationError parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static MigrationError parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static MigrationError parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MigrationError parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static MigrationError parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MigrationError parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MigrationError parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static MigrationError parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MigrationError parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static MigrationError parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static MigrationError parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MigrationError parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<MigrationError> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
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
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
getErrorTimeOrBuilder()
public TimestampOrBuilder getErrorTimeOrBuilder()
Output only. The time the error occurred.
.google.protobuf.Timestamp error_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getHelpLinks(int index)
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
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
getHelpLinksList()
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
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
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public MigrationError.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MigrationError.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public MigrationError.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions