Class MigrationWarning (0.15.0)

public final class MigrationWarning extends GeneratedMessageV3 implements MigrationWarningOrBuilder

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

Protobuf type google.events.cloud.vmmigration.v1.MigrationWarning

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
public static final int HELP_LINKS_FIELD_NUMBER
Field Value
Type Description
int

WARNING_MESSAGE_FIELD_NUMBER

public static final int WARNING_MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

WARNING_TIME_FIELD_NUMBER

public static final int WARNING_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MigrationWarning getDefaultInstance()
Returns
Type Description
MigrationWarning

getDescriptor()

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

newBuilder()

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

newBuilder(MigrationWarning prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getActionItem()

public LocalizedMessage getActionItem()

Suggested action for solving the warning.

.google.rpc.LocalizedMessage action_item = 3;

Returns
Type Description
com.google.rpc.LocalizedMessage

The actionItem.

getActionItemOrBuilder()

public LocalizedMessageOrBuilder getActionItemOrBuilder()

Suggested action for solving the warning.

.google.rpc.LocalizedMessage action_item = 3;

Returns
Type Description
com.google.rpc.LocalizedMessageOrBuilder

getCode()

public MigrationWarning.WarningCode getCode()

The warning code.

.google.events.cloud.vmmigration.v1.MigrationWarning.WarningCode code = 1;

Returns
Type Description
MigrationWarning.WarningCode

The code.

getCodeValue()

public int getCodeValue()

The warning code.

.google.events.cloud.vmmigration.v1.MigrationWarning.WarningCode code = 1;

Returns
Type Description
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

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

URL(s) pointing to additional information on handling the current warning.

repeated .google.rpc.Help.Link help_links = 4;

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

getHelpLinksCount()

public int getHelpLinksCount()

URL(s) pointing to additional information on handling the current warning.

repeated .google.rpc.Help.Link help_links = 4;

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

URL(s) pointing to additional information on handling the current warning.

repeated .google.rpc.Help.Link help_links = 4;

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

getHelpLinksOrBuilder(int index)

public Help.LinkOrBuilder getHelpLinksOrBuilder(int index)

URL(s) pointing to additional information on handling the current warning.

repeated .google.rpc.Help.Link help_links = 4;

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

getHelpLinksOrBuilderList()

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

URL(s) pointing to additional information on handling the current warning.

repeated .google.rpc.Help.Link help_links = 4;

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

getWarningMessage()

public LocalizedMessage getWarningMessage()

The localized warning message.

.google.rpc.LocalizedMessage warning_message = 2;

Returns
Type Description
com.google.rpc.LocalizedMessage

The warningMessage.

getWarningMessageOrBuilder()

public LocalizedMessageOrBuilder getWarningMessageOrBuilder()

The localized warning message.

.google.rpc.LocalizedMessage warning_message = 2;

Returns
Type Description
com.google.rpc.LocalizedMessageOrBuilder

getWarningTime()

public Timestamp getWarningTime()

The time the warning occurred.

.google.protobuf.Timestamp warning_time = 5;

Returns
Type Description
Timestamp

The warningTime.

getWarningTimeOrBuilder()

public TimestampOrBuilder getWarningTimeOrBuilder()

The time the warning occurred.

.google.protobuf.Timestamp warning_time = 5;

Returns
Type Description
TimestampOrBuilder

hasActionItem()

public boolean hasActionItem()

Suggested action for solving the warning.

.google.rpc.LocalizedMessage action_item = 3;

Returns
Type Description
boolean

Whether the actionItem field is set.

hasWarningMessage()

public boolean hasWarningMessage()

The localized warning message.

.google.rpc.LocalizedMessage warning_message = 2;

Returns
Type Description
boolean

Whether the warningMessage field is set.

hasWarningTime()

public boolean hasWarningTime()

The time the warning occurred.

.google.protobuf.Timestamp warning_time = 5;

Returns
Type Description
boolean

Whether the warningTime 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 MigrationWarning.Builder newBuilderForType()
Returns
Type Description
MigrationWarning.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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