Class ListMigratingVmsResponse.Builder (1.52.0)

public static final class ListMigratingVmsResponse.Builder extends GeneratedMessageV3.Builder<ListMigratingVmsResponse.Builder> implements ListMigratingVmsResponseOrBuilder

Response message for 'ListMigratingVms' request.

Protobuf type google.cloud.vmmigration.v1.ListMigratingVmsResponse

Static Methods

getDescriptor()

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

Methods

addAllMigratingVms(Iterable<? extends MigratingVm> values)

public ListMigratingVmsResponse.Builder addAllMigratingVms(Iterable<? extends MigratingVm> values)

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.vmmigration.v1.MigratingVm>
Returns
Type Description
ListMigratingVmsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListMigratingVmsResponse.Builder addAllUnreachable(Iterable<String> values)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListMigratingVmsResponse.Builder

This builder for chaining.

addMigratingVms(MigratingVm value)

public ListMigratingVmsResponse.Builder addMigratingVms(MigratingVm value)

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MigratingVm
Returns
Type Description
ListMigratingVmsResponse.Builder

addMigratingVms(MigratingVm.Builder builderForValue)

public ListMigratingVmsResponse.Builder addMigratingVms(MigratingVm.Builder builderForValue)

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue MigratingVm.Builder
Returns
Type Description
ListMigratingVmsResponse.Builder

addMigratingVms(int index, MigratingVm value)

public ListMigratingVmsResponse.Builder addMigratingVms(int index, MigratingVm value)

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value MigratingVm
Returns
Type Description
ListMigratingVmsResponse.Builder

addMigratingVms(int index, MigratingVm.Builder builderForValue)

public ListMigratingVmsResponse.Builder addMigratingVms(int index, MigratingVm.Builder builderForValue)

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue MigratingVm.Builder
Returns
Type Description
ListMigratingVmsResponse.Builder

addMigratingVmsBuilder()

public MigratingVm.Builder addMigratingVmsBuilder()

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigratingVm.Builder

addMigratingVmsBuilder(int index)

public MigratingVm.Builder addMigratingVmsBuilder(int index)

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
MigratingVm.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListMigratingVmsResponse.Builder addUnreachable(String value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListMigratingVmsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListMigratingVmsResponse.Builder addUnreachableBytes(ByteString value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListMigratingVmsResponse.Builder

This builder for chaining.

build()

public ListMigratingVmsResponse build()
Returns
Type Description
ListMigratingVmsResponse

buildPartial()

public ListMigratingVmsResponse buildPartial()
Returns
Type Description
ListMigratingVmsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMigratingVms()

public ListMigratingVmsResponse.Builder clearMigratingVms()

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListMigratingVmsResponse.Builder

clearNextPageToken()

public ListMigratingVmsResponse.Builder clearNextPageToken()

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListMigratingVmsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListMigratingVmsResponse.Builder clearUnreachable()

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListMigratingVmsResponse.Builder

This builder for chaining.

clone()

public ListMigratingVmsResponse.Builder clone()
Returns
Type Description
ListMigratingVmsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListMigratingVmsResponse getDefaultInstanceForType()
Returns
Type Description
ListMigratingVmsResponse

getDescriptorForType()

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

getMigratingVms(int index)

public MigratingVm getMigratingVms(int index)

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
MigratingVm

getMigratingVmsBuilder(int index)

public MigratingVm.Builder getMigratingVmsBuilder(int index)

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
MigratingVm.Builder

getMigratingVmsBuilderList()

public List<MigratingVm.Builder> getMigratingVmsBuilderList()

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getMigratingVmsCount()

public int getMigratingVmsCount()

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getMigratingVmsList()

public List<MigratingVm> getMigratingVmsList()

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<MigratingVm>

getMigratingVmsOrBuilder(int index)

public MigratingVmOrBuilder getMigratingVmsOrBuilder(int index)

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
MigratingVmOrBuilder

getMigratingVmsOrBuilderList()

public List<? extends MigratingVmOrBuilder> getMigratingVmsOrBuilderList()

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.vmmigration.v1.MigratingVmOrBuilder>

getNextPageToken()

public String getNextPageToken()

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListMigratingVmsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListMigratingVmsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListMigratingVmsResponse.Builder
Overrides

removeMigratingVms(int index)

public ListMigratingVmsResponse.Builder removeMigratingVms(int index)

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ListMigratingVmsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMigratingVms(int index, MigratingVm value)

public ListMigratingVmsResponse.Builder setMigratingVms(int index, MigratingVm value)

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value MigratingVm
Returns
Type Description
ListMigratingVmsResponse.Builder

setMigratingVms(int index, MigratingVm.Builder builderForValue)

public ListMigratingVmsResponse.Builder setMigratingVms(int index, MigratingVm.Builder builderForValue)

Output only. The list of Migrating VMs response.

repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue MigratingVm.Builder
Returns
Type Description
ListMigratingVmsResponse.Builder

setNextPageToken(String value)

public ListMigratingVmsResponse.Builder setNextPageToken(String value)

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListMigratingVmsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListMigratingVmsResponse.Builder setNextPageTokenBytes(ByteString value)

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListMigratingVmsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListMigratingVmsResponse.Builder setUnreachable(int index, String value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListMigratingVmsResponse.Builder

This builder for chaining.