Class MigrationWarning.Builder (0.14.1)

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

getDescriptor()

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

Methods

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

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

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

Parameter
NameDescription
valuesIterable<? extends com.google.rpc.Help.Link>
Returns
TypeDescription
MigrationWarning.Builder
public MigrationWarning.Builder addHelpLinks(Help.Link value)

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

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

Parameter
NameDescription
valuecom.google.rpc.Help.Link
Returns
TypeDescription
MigrationWarning.Builder
public MigrationWarning.Builder addHelpLinks(Help.Link.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValuecom.google.rpc.Help.Link.Builder
Returns
TypeDescription
MigrationWarning.Builder
public MigrationWarning.Builder addHelpLinks(int index, Help.Link value)

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

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

Parameters
NameDescription
indexint
valuecom.google.rpc.Help.Link
Returns
TypeDescription
MigrationWarning.Builder
public MigrationWarning.Builder addHelpLinks(int index, Help.Link.Builder builderForValue)

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

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

Parameters
NameDescription
indexint
builderForValuecom.google.rpc.Help.Link.Builder
Returns
TypeDescription
MigrationWarning.Builder

addHelpLinksBuilder()

public Help.Link.Builder addHelpLinksBuilder()

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

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

Returns
TypeDescription
com.google.rpc.Help.Link.Builder

addHelpLinksBuilder(int index)

public Help.Link.Builder addHelpLinksBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MigrationWarning build()
Returns
TypeDescription
MigrationWarning

buildPartial()

public MigrationWarning buildPartial()
Returns
TypeDescription
MigrationWarning

clear()

public MigrationWarning.Builder clear()
Returns
TypeDescription
MigrationWarning.Builder
Overrides

clearActionItem()

public MigrationWarning.Builder clearActionItem()

Suggested action for solving the warning.

.google.rpc.LocalizedMessage action_item = 3;

Returns
TypeDescription
MigrationWarning.Builder

clearCode()

public MigrationWarning.Builder clearCode()

The warning code.

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

Returns
TypeDescription
MigrationWarning.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MigrationWarning.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MigrationWarning.Builder
Overrides
public MigrationWarning.Builder clearHelpLinks()

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

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

Returns
TypeDescription
MigrationWarning.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWarningMessage()

public MigrationWarning.Builder clearWarningMessage()

The localized warning message.

.google.rpc.LocalizedMessage warning_message = 2;

Returns
TypeDescription
MigrationWarning.Builder

clearWarningTime()

public MigrationWarning.Builder clearWarningTime()

The time the warning occurred.

.google.protobuf.Timestamp warning_time = 5;

Returns
TypeDescription
MigrationWarning.Builder

clone()

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

getActionItemBuilder()

public LocalizedMessage.Builder getActionItemBuilder()

Suggested action for solving the warning.

.google.rpc.LocalizedMessage action_item = 3;

Returns
TypeDescription
com.google.rpc.LocalizedMessage.Builder

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

getDescriptorForType()

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

getHelpLinksBuilder(int index)

public Help.Link.Builder getHelpLinksBuilder(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.Builder

getHelpLinksBuilderList()

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

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

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>

getWarningMessage()

public LocalizedMessage getWarningMessage()

The localized warning message.

.google.rpc.LocalizedMessage warning_message = 2;

Returns
TypeDescription
com.google.rpc.LocalizedMessage

The warningMessage.

getWarningMessageBuilder()

public LocalizedMessage.Builder getWarningMessageBuilder()

The localized warning message.

.google.rpc.LocalizedMessage warning_message = 2;

Returns
TypeDescription
com.google.rpc.LocalizedMessage.Builder

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.

getWarningTimeBuilder()

public Timestamp.Builder getWarningTimeBuilder()

The time the warning occurred.

.google.protobuf.Timestamp warning_time = 5;

Returns
TypeDescription
Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeActionItem(LocalizedMessage value)

public MigrationWarning.Builder mergeActionItem(LocalizedMessage value)

Suggested action for solving the warning.

.google.rpc.LocalizedMessage action_item = 3;

Parameter
NameDescription
valuecom.google.rpc.LocalizedMessage
Returns
TypeDescription
MigrationWarning.Builder

mergeFrom(MigrationWarning other)

public MigrationWarning.Builder mergeFrom(MigrationWarning other)
Parameter
NameDescription
otherMigrationWarning
Returns
TypeDescription
MigrationWarning.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MigrationWarning.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MigrationWarning.Builder
Overrides

mergeWarningMessage(LocalizedMessage value)

public MigrationWarning.Builder mergeWarningMessage(LocalizedMessage value)

The localized warning message.

.google.rpc.LocalizedMessage warning_message = 2;

Parameter
NameDescription
valuecom.google.rpc.LocalizedMessage
Returns
TypeDescription
MigrationWarning.Builder

mergeWarningTime(Timestamp value)

public MigrationWarning.Builder mergeWarningTime(Timestamp value)

The time the warning occurred.

.google.protobuf.Timestamp warning_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationWarning.Builder
public MigrationWarning.Builder removeHelpLinks(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
MigrationWarning.Builder

setActionItem(LocalizedMessage value)

public MigrationWarning.Builder setActionItem(LocalizedMessage value)

Suggested action for solving the warning.

.google.rpc.LocalizedMessage action_item = 3;

Parameter
NameDescription
valuecom.google.rpc.LocalizedMessage
Returns
TypeDescription
MigrationWarning.Builder

setActionItem(LocalizedMessage.Builder builderForValue)

public MigrationWarning.Builder setActionItem(LocalizedMessage.Builder builderForValue)

Suggested action for solving the warning.

.google.rpc.LocalizedMessage action_item = 3;

Parameter
NameDescription
builderForValuecom.google.rpc.LocalizedMessage.Builder
Returns
TypeDescription
MigrationWarning.Builder

setCode(MigrationWarning.WarningCode value)

public MigrationWarning.Builder setCode(MigrationWarning.WarningCode value)

The warning code.

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

Parameter
NameDescription
valueMigrationWarning.WarningCode

The code to set.

Returns
TypeDescription
MigrationWarning.Builder

This builder for chaining.

setCodeValue(int value)

public MigrationWarning.Builder setCodeValue(int value)

The warning code.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
MigrationWarning.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MigrationWarning.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MigrationWarning.Builder
Overrides
public MigrationWarning.Builder setHelpLinks(int index, Help.Link value)

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

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

Parameters
NameDescription
indexint
valuecom.google.rpc.Help.Link
Returns
TypeDescription
MigrationWarning.Builder
public MigrationWarning.Builder setHelpLinks(int index, Help.Link.Builder builderForValue)

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

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

Parameters
NameDescription
indexint
builderForValuecom.google.rpc.Help.Link.Builder
Returns
TypeDescription
MigrationWarning.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWarningMessage(LocalizedMessage value)

public MigrationWarning.Builder setWarningMessage(LocalizedMessage value)

The localized warning message.

.google.rpc.LocalizedMessage warning_message = 2;

Parameter
NameDescription
valuecom.google.rpc.LocalizedMessage
Returns
TypeDescription
MigrationWarning.Builder

setWarningMessage(LocalizedMessage.Builder builderForValue)

public MigrationWarning.Builder setWarningMessage(LocalizedMessage.Builder builderForValue)

The localized warning message.

.google.rpc.LocalizedMessage warning_message = 2;

Parameter
NameDescription
builderForValuecom.google.rpc.LocalizedMessage.Builder
Returns
TypeDescription
MigrationWarning.Builder

setWarningTime(Timestamp value)

public MigrationWarning.Builder setWarningTime(Timestamp value)

The time the warning occurred.

.google.protobuf.Timestamp warning_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationWarning.Builder

setWarningTime(Timestamp.Builder builderForValue)

public MigrationWarning.Builder setWarningTime(Timestamp.Builder builderForValue)

The time the warning occurred.

.google.protobuf.Timestamp warning_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
MigrationWarning.Builder