Class ListMigratingVmsResponse.Builder (1.31.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.vmmigration.v1.MigratingVm>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueMigratingVm
Returns
TypeDescription
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
NameDescription
builderForValueMigratingVm.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMigratingVm
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMigratingVm.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MigratingVm.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListMigratingVmsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListMigratingVmsResponse.Builder

This builder for chaining.

build()

public ListMigratingVmsResponse build()
Returns
TypeDescription
ListMigratingVmsResponse

buildPartial()

public ListMigratingVmsResponse buildPartial()
Returns
TypeDescription
ListMigratingVmsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListMigratingVmsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ListMigratingVmsResponse.Builder

This builder for chaining.

clone()

public ListMigratingVmsResponse.Builder clone()
Returns
TypeDescription
ListMigratingVmsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListMigratingVmsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListMigratingVmsResponse

getDescriptorForType()

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListMigratingVmsResponse other)

public ListMigratingVmsResponse.Builder mergeFrom(ListMigratingVmsResponse other)
Parameter
NameDescription
otherListMigratingVmsResponse
Returns
TypeDescription
ListMigratingVmsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListMigratingVmsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListMigratingVmsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListMigratingVmsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueMigratingVm
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMigratingVm.Builder
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListMigratingVmsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListMigratingVmsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListMigratingVmsResponse.Builder

This builder for chaining.