Class MigrationError.Builder (1.47.0)

public static final class MigrationError.Builder extends GeneratedMessageV3.Builder<MigrationError.Builder> 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 Methods

getDescriptor()

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

Methods

public MigrationError.Builder addAllHelpLinks(Iterable<? extends Help.Link> values)

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
Name Description
values Iterable<? extends com.google.rpc.Help.Link>
Returns
Type Description
MigrationError.Builder
public MigrationError.Builder addHelpLinks(Help.Link value)

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
Name Description
value com.google.rpc.Help.Link
Returns
Type Description
MigrationError.Builder
public MigrationError.Builder addHelpLinks(Help.Link.Builder builderForValue)

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
Name Description
builderForValue com.google.rpc.Help.Link.Builder
Returns
Type Description
MigrationError.Builder
public MigrationError.Builder addHelpLinks(int index, Help.Link value)

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];

Parameters
Name Description
index int
value com.google.rpc.Help.Link
Returns
Type Description
MigrationError.Builder
public MigrationError.Builder addHelpLinks(int index, Help.Link.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue com.google.rpc.Help.Link.Builder
Returns
Type Description
MigrationError.Builder

addHelpLinksBuilder()

public Help.Link.Builder addHelpLinksBuilder()

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
com.google.rpc.Help.Link.Builder

addHelpLinksBuilder(int index)

public Help.Link.Builder addHelpLinksBuilder(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
Name Description
index int
Returns
Type Description
com.google.rpc.Help.Link.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MigrationError.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MigrationError.Builder
Overrides

build()

public MigrationError build()
Returns
Type Description
MigrationError

buildPartial()

public MigrationError buildPartial()
Returns
Type Description
MigrationError

clear()

public MigrationError.Builder clear()
Returns
Type Description
MigrationError.Builder
Overrides

clearActionItem()

public MigrationError.Builder clearActionItem()

Output only. Suggested action for solving the error.

.google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationError.Builder

clearCode()

public MigrationError.Builder clearCode()

Output only. The error code.

.google.cloud.vmmigration.v1.MigrationError.ErrorCode code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationError.Builder

This builder for chaining.

clearErrorMessage()

public MigrationError.Builder clearErrorMessage()

Output only. The localized error message.

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

Returns
Type Description
MigrationError.Builder

clearErrorTime()

public MigrationError.Builder clearErrorTime()

Output only. The time the error occurred.

.google.protobuf.Timestamp error_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationError.Builder

clearField(Descriptors.FieldDescriptor field)

public MigrationError.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MigrationError.Builder
Overrides
public MigrationError.Builder clearHelpLinks()

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
MigrationError.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MigrationError.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MigrationError.Builder
Overrides

clone()

public MigrationError.Builder clone()
Returns
Type Description
MigrationError.Builder
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.

getActionItemBuilder()

public LocalizedMessage.Builder getActionItemBuilder()

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.Builder

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
Type Description
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
Type Description
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public MigrationError getDefaultInstanceForType()
Returns
Type Description
MigrationError

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getErrorMessageBuilder()

public LocalizedMessage.Builder getErrorMessageBuilder()

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.Builder

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
Type Description
Timestamp

The errorTime.

getErrorTimeBuilder()

public Timestamp.Builder getErrorTimeBuilder()

Output only. The time the error occurred.

.google.protobuf.Timestamp error_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getErrorTimeOrBuilder()

public TimestampOrBuilder getErrorTimeOrBuilder()

Output only. The time the error occurred.

.google.protobuf.Timestamp error_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
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
Name Description
index int
Returns
Type Description
com.google.rpc.Help.Link

getHelpLinksBuilder(int index)

public Help.Link.Builder getHelpLinksBuilder(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
Name Description
index int
Returns
Type Description
com.google.rpc.Help.Link.Builder

getHelpLinksBuilderList()

public List<Help.Link.Builder> getHelpLinksBuilderList()

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.Builder>

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
Type Description
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
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
Name Description
index int
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>

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeActionItem(LocalizedMessage value)

public MigrationError.Builder mergeActionItem(LocalizedMessage value)

Output only. Suggested action for solving the error.

.google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.LocalizedMessage
Returns
Type Description
MigrationError.Builder

mergeErrorMessage(LocalizedMessage value)

public MigrationError.Builder mergeErrorMessage(LocalizedMessage value)

Output only. The localized error message.

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

Parameter
Name Description
value com.google.rpc.LocalizedMessage
Returns
Type Description
MigrationError.Builder

mergeErrorTime(Timestamp value)

public MigrationError.Builder mergeErrorTime(Timestamp value)

Output only. The time the error occurred.

.google.protobuf.Timestamp error_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationError.Builder

mergeFrom(MigrationError other)

public MigrationError.Builder mergeFrom(MigrationError other)
Parameter
Name Description
other MigrationError
Returns
Type Description
MigrationError.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MigrationError.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationError.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MigrationError.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MigrationError.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MigrationError.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MigrationError.Builder
Overrides
public MigrationError.Builder removeHelpLinks(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
Name Description
index int
Returns
Type Description
MigrationError.Builder

setActionItem(LocalizedMessage value)

public MigrationError.Builder setActionItem(LocalizedMessage value)

Output only. Suggested action for solving the error.

.google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.LocalizedMessage
Returns
Type Description
MigrationError.Builder

setActionItem(LocalizedMessage.Builder builderForValue)

public MigrationError.Builder setActionItem(LocalizedMessage.Builder builderForValue)

Output only. Suggested action for solving the error.

.google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.rpc.LocalizedMessage.Builder
Returns
Type Description
MigrationError.Builder

setCode(MigrationError.ErrorCode value)

public MigrationError.Builder setCode(MigrationError.ErrorCode value)

Output only. The error code.

.google.cloud.vmmigration.v1.MigrationError.ErrorCode code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MigrationError.ErrorCode

The code to set.

Returns
Type Description
MigrationError.Builder

This builder for chaining.

setCodeValue(int value)

public MigrationError.Builder setCodeValue(int value)

Output only. The error code.

.google.cloud.vmmigration.v1.MigrationError.ErrorCode code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for code to set.

Returns
Type Description
MigrationError.Builder

This builder for chaining.

setErrorMessage(LocalizedMessage value)

public MigrationError.Builder setErrorMessage(LocalizedMessage value)

Output only. The localized error message.

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

Parameter
Name Description
value com.google.rpc.LocalizedMessage
Returns
Type Description
MigrationError.Builder

setErrorMessage(LocalizedMessage.Builder builderForValue)

public MigrationError.Builder setErrorMessage(LocalizedMessage.Builder builderForValue)

Output only. The localized error message.

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

Parameter
Name Description
builderForValue com.google.rpc.LocalizedMessage.Builder
Returns
Type Description
MigrationError.Builder

setErrorTime(Timestamp value)

public MigrationError.Builder setErrorTime(Timestamp value)

Output only. The time the error occurred.

.google.protobuf.Timestamp error_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
MigrationError.Builder

setErrorTime(Timestamp.Builder builderForValue)

public MigrationError.Builder setErrorTime(Timestamp.Builder builderForValue)

Output only. The time the error occurred.

.google.protobuf.Timestamp error_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MigrationError.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MigrationError.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MigrationError.Builder
Overrides
public MigrationError.Builder setHelpLinks(int index, Help.Link value)

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];

Parameters
Name Description
index int
value com.google.rpc.Help.Link
Returns
Type Description
MigrationError.Builder
public MigrationError.Builder setHelpLinks(int index, Help.Link.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue com.google.rpc.Help.Link.Builder
Returns
Type Description
MigrationError.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MigrationError.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MigrationError.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MigrationError.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MigrationError.Builder
Overrides