Class MigrationError.Builder (1.6.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.rpc.Help.Link>
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Help.Link
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Help.Link.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.rpc.Help.Link
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.rpc.Help.Link.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Help.Link.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MigrationError.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MigrationError.Builder
Overrides

build()

public MigrationError build()
Returns
TypeDescription
MigrationError

buildPartial()

public MigrationError buildPartial()
Returns
TypeDescription
MigrationError

clear()

public MigrationError.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
MigrationError.Builder

clearField(Descriptors.FieldDescriptor field)

public MigrationError.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
MigrationError.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MigrationError.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MigrationError.Builder
Overrides

clone()

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

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public MigrationError getDefaultInstanceForType()
Returns
TypeDescription
MigrationError

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the errorTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.LocalizedMessage
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.LocalizedMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationError.Builder

mergeFrom(MigrationError other)

public MigrationError.Builder mergeFrom(MigrationError other)
Parameter
NameDescription
otherMigrationError
Returns
TypeDescription
MigrationError.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MigrationError.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationError.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MigrationError.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MigrationError.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MigrationError.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.LocalizedMessage
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.LocalizedMessage.Builder
Returns
TypeDescription
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
NameDescription
valueMigrationError.ErrorCode

The code to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.LocalizedMessage
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.LocalizedMessage.Builder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
MigrationError.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MigrationError.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.rpc.Help.Link
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.rpc.Help.Link.Builder
Returns
TypeDescription
MigrationError.Builder

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

public MigrationError.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MigrationError.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MigrationError.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MigrationError.Builder
Overrides