Class ListMigrationJobsResponse.Builder (2.16.0)

public static final class ListMigrationJobsResponse.Builder extends GeneratedMessageV3.Builder<ListMigrationJobsResponse.Builder> implements ListMigrationJobsResponseOrBuilder

Response message for 'ListMigrationJobs' request.

Protobuf type google.cloud.clouddms.v1.ListMigrationJobsResponse

Static Methods

getDescriptor()

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

Methods

addAllMigrationJobs(Iterable<? extends MigrationJob> values)

public ListMigrationJobsResponse.Builder addAllMigrationJobs(Iterable<? extends MigrationJob> values)

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.clouddms.v1.MigrationJob>
Returns
TypeDescription
ListMigrationJobsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListMigrationJobsResponse.Builder

This builder for chaining.

addMigrationJobs(MigrationJob value)

public ListMigrationJobsResponse.Builder addMigrationJobs(MigrationJob value)

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Parameter
NameDescription
valueMigrationJob
Returns
TypeDescription
ListMigrationJobsResponse.Builder

addMigrationJobs(MigrationJob.Builder builderForValue)

public ListMigrationJobsResponse.Builder addMigrationJobs(MigrationJob.Builder builderForValue)

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Parameter
NameDescription
builderForValueMigrationJob.Builder
Returns
TypeDescription
ListMigrationJobsResponse.Builder

addMigrationJobs(int index, MigrationJob value)

public ListMigrationJobsResponse.Builder addMigrationJobs(int index, MigrationJob value)

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Parameters
NameDescription
indexint
valueMigrationJob
Returns
TypeDescription
ListMigrationJobsResponse.Builder

addMigrationJobs(int index, MigrationJob.Builder builderForValue)

public ListMigrationJobsResponse.Builder addMigrationJobs(int index, MigrationJob.Builder builderForValue)

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Parameters
NameDescription
indexint
builderForValueMigrationJob.Builder
Returns
TypeDescription
ListMigrationJobsResponse.Builder

addMigrationJobsBuilder()

public MigrationJob.Builder addMigrationJobsBuilder()

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Returns
TypeDescription
MigrationJob.Builder

addMigrationJobsBuilder(int index)

public MigrationJob.Builder addMigrationJobsBuilder(int index)

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
MigrationJob.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListMigrationJobsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListMigrationJobsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListMigrationJobsResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListMigrationJobsResponse.Builder

This builder for chaining.

build()

public ListMigrationJobsResponse build()
Returns
TypeDescription
ListMigrationJobsResponse

buildPartial()

public ListMigrationJobsResponse buildPartial()
Returns
TypeDescription
ListMigrationJobsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMigrationJobs()

public ListMigrationJobsResponse.Builder clearMigrationJobs()

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Returns
TypeDescription
ListMigrationJobsResponse.Builder

clearNextPageToken()

public ListMigrationJobsResponse.Builder clearNextPageToken()

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;

Returns
TypeDescription
ListMigrationJobsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListMigrationJobsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListMigrationJobsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListMigrationJobsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListMigrationJobsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMigrationJobs(int index)

public MigrationJob getMigrationJobs(int index)

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
MigrationJob

getMigrationJobsBuilder(int index)

public MigrationJob.Builder getMigrationJobsBuilder(int index)

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
MigrationJob.Builder

getMigrationJobsBuilderList()

public List<MigrationJob.Builder> getMigrationJobsBuilderList()

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Returns
TypeDescription
List<Builder>

getMigrationJobsCount()

public int getMigrationJobsCount()

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Returns
TypeDescription
int

getMigrationJobsList()

public List<MigrationJob> getMigrationJobsList()

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Returns
TypeDescription
List<MigrationJob>

getMigrationJobsOrBuilder(int index)

public MigrationJobOrBuilder getMigrationJobsOrBuilder(int index)

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
MigrationJobOrBuilder

getMigrationJobsOrBuilderList()

public List<? extends MigrationJobOrBuilder> getMigrationJobsOrBuilderList()

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Returns
TypeDescription
List<? extends com.google.cloud.clouddms.v1.MigrationJobOrBuilder>

getNextPageToken()

public String getNextPageToken()

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;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

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)

Locations that could not be reached.

repeated string unreachable = 3;

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()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

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(ListMigrationJobsResponse other)

public ListMigrationJobsResponse.Builder mergeFrom(ListMigrationJobsResponse other)
Parameter
NameDescription
otherListMigrationJobsResponse
Returns
TypeDescription
ListMigrationJobsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMigrationJobs(int index)

public ListMigrationJobsResponse.Builder removeMigrationJobs(int index)

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListMigrationJobsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMigrationJobs(int index, MigrationJob value)

public ListMigrationJobsResponse.Builder setMigrationJobs(int index, MigrationJob value)

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Parameters
NameDescription
indexint
valueMigrationJob
Returns
TypeDescription
ListMigrationJobsResponse.Builder

setMigrationJobs(int index, MigrationJob.Builder builderForValue)

public ListMigrationJobsResponse.Builder setMigrationJobs(int index, MigrationJob.Builder builderForValue)

The list of migration jobs objects.

repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1;

Parameters
NameDescription
indexint
builderForValueMigrationJob.Builder
Returns
TypeDescription
ListMigrationJobsResponse.Builder

setNextPageToken(String value)

public ListMigrationJobsResponse.Builder setNextPageToken(String value)

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;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListMigrationJobsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListMigrationJobsResponse.Builder setNextPageTokenBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListMigrationJobsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListMigrationJobsResponse.Builder

This builder for chaining.