Class MigrationWarning (0.14.1)

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
TypeDescription
int

CODE_FIELD_NUMBER

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

WARNING_MESSAGE_FIELD_NUMBER

public static final int WARNING_MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

WARNING_TIME_FIELD_NUMBER

public static final int WARNING_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MigrationWarning getDefaultInstance()
Returns
TypeDescription
MigrationWarning

getDescriptor()

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

newBuilder()

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

newBuilder(MigrationWarning prototype)

public static MigrationWarning.Builder newBuilder(MigrationWarning prototype)
Parameter
NameDescription
prototypeMigrationWarning
Returns
TypeDescription
MigrationWarning.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getActionItem()

public LocalizedMessage getActionItem()

Suggested action for solving the warning.

.google.rpc.LocalizedMessage action_item = 3;

Returns
TypeDescription
com.google.rpc.LocalizedMessage

The actionItem.

getActionItemOrBuilder()

public LocalizedMessageOrBuilder getActionItemOrBuilder()

Suggested action for solving the warning.

.google.rpc.LocalizedMessage action_item = 3;

Returns
TypeDescription
com.google.rpc.LocalizedMessageOrBuilder

getCode()

public MigrationWarning.WarningCode getCode()

The warning code.

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

Returns
TypeDescription
MigrationWarning.WarningCode

The code.

getCodeValue()

public int getCodeValue()

The warning code.

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

Returns
TypeDescription
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getWarningMessage()

public LocalizedMessage getWarningMessage()

The localized warning message.

.google.rpc.LocalizedMessage warning_message = 2;

Returns
TypeDescription
com.google.rpc.LocalizedMessage

The warningMessage.

getWarningMessageOrBuilder()

public LocalizedMessageOrBuilder getWarningMessageOrBuilder()

The localized warning message.

.google.rpc.LocalizedMessage warning_message = 2;

Returns
TypeDescription
com.google.rpc.LocalizedMessageOrBuilder

getWarningTime()

public Timestamp getWarningTime()

The time the warning occurred.

.google.protobuf.Timestamp warning_time = 5;

Returns
TypeDescription
Timestamp

The warningTime.

getWarningTimeOrBuilder()

public TimestampOrBuilder getWarningTimeOrBuilder()

The time the warning occurred.

.google.protobuf.Timestamp warning_time = 5;

Returns
TypeDescription
TimestampOrBuilder

hasActionItem()

public boolean hasActionItem()

Suggested action for solving the warning.

.google.rpc.LocalizedMessage action_item = 3;

Returns
TypeDescription
boolean

Whether the actionItem field is set.

hasWarningMessage()

public boolean hasWarningMessage()

The localized warning message.

.google.rpc.LocalizedMessage warning_message = 2;

Returns
TypeDescription
boolean

Whether the warningMessage field is set.

hasWarningTime()

public boolean hasWarningTime()

The time the warning occurred.

.google.protobuf.Timestamp warning_time = 5;

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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