Class ListDiskMigrationJobsResponse.Builder (1.83.0)

public static final class ListDiskMigrationJobsResponse.Builder extends GeneratedMessage.Builder<ListDiskMigrationJobsResponse.Builder> implements ListDiskMigrationJobsResponseOrBuilder

Response message for 'ListDiskMigrationJobs' request.

Protobuf type google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse

Static Methods

getDescriptor()

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

Methods

addAllDiskMigrationJobs(Iterable<? extends DiskMigrationJob> values)

public ListDiskMigrationJobsResponse.Builder addAllDiskMigrationJobs(Iterable<? extends DiskMigrationJob> values)

Output only. The list of the disk migration jobs.

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

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

addAllUnreachable(Iterable<String> values)

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

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListDiskMigrationJobsResponse.Builder

This builder for chaining.

addDiskMigrationJobs(DiskMigrationJob value)

public ListDiskMigrationJobsResponse.Builder addDiskMigrationJobs(DiskMigrationJob value)

Output only. The list of the disk migration jobs.

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

Parameter
Name Description
value DiskMigrationJob
Returns
Type Description
ListDiskMigrationJobsResponse.Builder

addDiskMigrationJobs(DiskMigrationJob.Builder builderForValue)

public ListDiskMigrationJobsResponse.Builder addDiskMigrationJobs(DiskMigrationJob.Builder builderForValue)

Output only. The list of the disk migration jobs.

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

Parameter
Name Description
builderForValue DiskMigrationJob.Builder
Returns
Type Description
ListDiskMigrationJobsResponse.Builder

addDiskMigrationJobs(int index, DiskMigrationJob value)

public ListDiskMigrationJobsResponse.Builder addDiskMigrationJobs(int index, DiskMigrationJob value)

Output only. The list of the disk migration jobs.

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

Parameters
Name Description
index int
value DiskMigrationJob
Returns
Type Description
ListDiskMigrationJobsResponse.Builder

addDiskMigrationJobs(int index, DiskMigrationJob.Builder builderForValue)

public ListDiskMigrationJobsResponse.Builder addDiskMigrationJobs(int index, DiskMigrationJob.Builder builderForValue)

Output only. The list of the disk migration jobs.

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

Parameters
Name Description
index int
builderForValue DiskMigrationJob.Builder
Returns
Type Description
ListDiskMigrationJobsResponse.Builder

addDiskMigrationJobsBuilder()

public DiskMigrationJob.Builder addDiskMigrationJobsBuilder()

Output only. The list of the disk migration jobs.

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

Returns
Type Description
DiskMigrationJob.Builder

addDiskMigrationJobsBuilder(int index)

public DiskMigrationJob.Builder addDiskMigrationJobsBuilder(int index)

Output only. The list of the disk migration jobs.

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

Parameter
Name Description
index int
Returns
Type Description
DiskMigrationJob.Builder

addUnreachable(String value)

public ListDiskMigrationJobsResponse.Builder addUnreachable(String value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListDiskMigrationJobsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListDiskMigrationJobsResponse.Builder addUnreachableBytes(ByteString value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListDiskMigrationJobsResponse.Builder

This builder for chaining.

build()

public ListDiskMigrationJobsResponse build()
Returns
Type Description
ListDiskMigrationJobsResponse

buildPartial()

public ListDiskMigrationJobsResponse buildPartial()
Returns
Type Description
ListDiskMigrationJobsResponse

clear()

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

clearDiskMigrationJobs()

public ListDiskMigrationJobsResponse.Builder clearDiskMigrationJobs()

Output only. The list of the disk migration jobs.

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

Returns
Type Description
ListDiskMigrationJobsResponse.Builder

clearNextPageToken()

public ListDiskMigrationJobsResponse.Builder clearNextPageToken()

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListDiskMigrationJobsResponse.Builder

This builder for chaining.

clearUnreachable()

public ListDiskMigrationJobsResponse.Builder clearUnreachable()

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ListDiskMigrationJobsResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListDiskMigrationJobsResponse getDefaultInstanceForType()
Returns
Type Description
ListDiskMigrationJobsResponse

getDescriptorForType()

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

getDiskMigrationJobs(int index)

public DiskMigrationJob getDiskMigrationJobs(int index)

Output only. The list of the disk migration jobs.

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

Parameter
Name Description
index int
Returns
Type Description
DiskMigrationJob

getDiskMigrationJobsBuilder(int index)

public DiskMigrationJob.Builder getDiskMigrationJobsBuilder(int index)

Output only. The list of the disk migration jobs.

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

Parameter
Name Description
index int
Returns
Type Description
DiskMigrationJob.Builder

getDiskMigrationJobsBuilderList()

public List<DiskMigrationJob.Builder> getDiskMigrationJobsBuilderList()

Output only. The list of the disk migration jobs.

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

Returns
Type Description
List<Builder>

getDiskMigrationJobsCount()

public int getDiskMigrationJobsCount()

Output only. The list of the disk migration jobs.

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

Returns
Type Description
int

getDiskMigrationJobsList()

public List<DiskMigrationJob> getDiskMigrationJobsList()

Output only. The list of the disk migration jobs.

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

Returns
Type Description
List<DiskMigrationJob>

getDiskMigrationJobsOrBuilder(int index)

public DiskMigrationJobOrBuilder getDiskMigrationJobsOrBuilder(int index)

Output only. The list of the disk migration jobs.

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

Parameter
Name Description
index int
Returns
Type Description
DiskMigrationJobOrBuilder

getDiskMigrationJobsOrBuilderList()

public List<? extends DiskMigrationJobOrBuilder> getDiskMigrationJobsOrBuilderList()

Output only. The list of the disk migration jobs.

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

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

getNextPageToken()

public String getNextPageToken()

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

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, (.google.api.resource_reference) = { ... }

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, (.google.api.resource_reference) = { ... }

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, (.google.api.resource_reference) = { ... }

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, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListDiskMigrationJobsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeDiskMigrationJobs(int index)

public ListDiskMigrationJobsResponse.Builder removeDiskMigrationJobs(int index)

Output only. The list of the disk migration jobs.

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

Parameter
Name Description
index int
Returns
Type Description
ListDiskMigrationJobsResponse.Builder

setDiskMigrationJobs(int index, DiskMigrationJob value)

public ListDiskMigrationJobsResponse.Builder setDiskMigrationJobs(int index, DiskMigrationJob value)

Output only. The list of the disk migration jobs.

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

Parameters
Name Description
index int
value DiskMigrationJob
Returns
Type Description
ListDiskMigrationJobsResponse.Builder

setDiskMigrationJobs(int index, DiskMigrationJob.Builder builderForValue)

public ListDiskMigrationJobsResponse.Builder setDiskMigrationJobs(int index, DiskMigrationJob.Builder builderForValue)

Output only. The list of the disk migration jobs.

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

Parameters
Name Description
index int
builderForValue DiskMigrationJob.Builder
Returns
Type Description
ListDiskMigrationJobsResponse.Builder

setNextPageToken(String value)

public ListDiskMigrationJobsResponse.Builder setNextPageToken(String value)

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListDiskMigrationJobsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListDiskMigrationJobsResponse.Builder setNextPageTokenBytes(ByteString value)

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListDiskMigrationJobsResponse.Builder

This builder for chaining.

setUnreachable(int index, String value)

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

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListDiskMigrationJobsResponse.Builder

This builder for chaining.