Class MigrationError

  • All Implemented Interfaces:
    MigrationErrorOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class MigrationError
    extends com.google.protobuf.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
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MigrationError.Builder
      Represents migration resource error information that can be used with google.rpc.Status message.
      static class  MigrationError.ErrorCode
      Represents resource error codes.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getCodeValue

        public int getCodeValue()
         Output only. The error code.
         
        .google.cloud.vmmigration.v1.MigrationError.ErrorCode code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCodeValue in interface MigrationErrorOrBuilder
        Returns:
        The enum numeric value on the wire for code.
      • getCode

        public MigrationError.ErrorCode getCode()
         Output only. The error code.
         
        .google.cloud.vmmigration.v1.MigrationError.ErrorCode code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCode in interface MigrationErrorOrBuilder
        Returns:
        The code.
      • hasErrorMessage

        public boolean hasErrorMessage()
         Output only. The localized error message.
         
        .google.rpc.LocalizedMessage error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasErrorMessage in interface MigrationErrorOrBuilder
        Returns:
        Whether the errorMessage field is set.
      • getErrorMessage

        public com.google.rpc.LocalizedMessage getErrorMessage()
         Output only. The localized error message.
         
        .google.rpc.LocalizedMessage error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrorMessage in interface MigrationErrorOrBuilder
        Returns:
        The errorMessage.
      • getErrorMessageOrBuilder

        public com.google.rpc.LocalizedMessageOrBuilder getErrorMessageOrBuilder()
         Output only. The localized error message.
         
        .google.rpc.LocalizedMessage error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrorMessageOrBuilder in interface MigrationErrorOrBuilder
      • hasActionItem

        public boolean hasActionItem()
         Output only. Suggested action for solving the error.
         
        .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasActionItem in interface MigrationErrorOrBuilder
        Returns:
        Whether the actionItem field is set.
      • getActionItem

        public com.google.rpc.LocalizedMessage getActionItem()
         Output only. Suggested action for solving the error.
         
        .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getActionItem in interface MigrationErrorOrBuilder
        Returns:
        The actionItem.
      • getActionItemOrBuilder

        public com.google.rpc.LocalizedMessageOrBuilder getActionItemOrBuilder()
         Output only. Suggested action for solving the error.
         
        .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getActionItemOrBuilder in interface MigrationErrorOrBuilder
      • getHelpLinksList

        public List<com.google.rpc.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];
        Specified by:
        getHelpLinksList in interface MigrationErrorOrBuilder
      • getHelpLinksOrBuilderList

        public List<? extends com.google.rpc.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];
        Specified by:
        getHelpLinksOrBuilderList in interface MigrationErrorOrBuilder
      • 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];
        Specified by:
        getHelpLinksCount in interface MigrationErrorOrBuilder
      • getHelpLinks

        public com.google.rpc.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];
        Specified by:
        getHelpLinks in interface MigrationErrorOrBuilder
      • getHelpLinksOrBuilder

        public com.google.rpc.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];
        Specified by:
        getHelpLinksOrBuilder in interface MigrationErrorOrBuilder
      • hasErrorTime

        public boolean hasErrorTime()
         Output only. The time the error occurred.
         
        .google.protobuf.Timestamp error_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasErrorTime in interface MigrationErrorOrBuilder
        Returns:
        Whether the errorTime field is set.
      • getErrorTime

        public com.google.protobuf.Timestamp getErrorTime()
         Output only. The time the error occurred.
         
        .google.protobuf.Timestamp error_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrorTime in interface MigrationErrorOrBuilder
        Returns:
        The errorTime.
      • getErrorTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder()
         Output only. The time the error occurred.
         
        .google.protobuf.Timestamp error_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrorTimeOrBuilder in interface MigrationErrorOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static MigrationError parseFrom​(ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigrationError parseFrom​(ByteBuffer data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigrationError parseFrom​(com.google.protobuf.ByteString data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigrationError parseFrom​(com.google.protobuf.ByteString data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigrationError parseFrom​(byte[] data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigrationError parseFrom​(byte[] data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigrationError parseFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Throws:
        IOException
      • newBuilderForType

        public MigrationError.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public MigrationError.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected MigrationError.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static MigrationError getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<MigrationError> parser()
      • getParserForType

        public com.google.protobuf.Parser<MigrationError> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public MigrationError getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder