Class ListReportsResponse.Builder (0.24.0)

public static final class ListReportsResponse.Builder extends GeneratedMessageV3.Builder<ListReportsResponse.Builder> implements ListReportsResponseOrBuilder

Response message for listing Reports.

Protobuf type google.cloud.migrationcenter.v1.ListReportsResponse

Static Methods

getDescriptor()

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

Methods

addAllReports(Iterable<? extends Report> values)

public ListReportsResponse.Builder addAllReports(Iterable<? extends Report> values)

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.migrationcenter.v1.Report>
Returns
Type Description
ListReportsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListReportsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addReports(Report value)

public ListReportsResponse.Builder addReports(Report value)

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Parameter
Name Description
value Report
Returns
Type Description
ListReportsResponse.Builder

addReports(Report.Builder builderForValue)

public ListReportsResponse.Builder addReports(Report.Builder builderForValue)

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Parameter
Name Description
builderForValue Report.Builder
Returns
Type Description
ListReportsResponse.Builder

addReports(int index, Report value)

public ListReportsResponse.Builder addReports(int index, Report value)

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Parameters
Name Description
index int
value Report
Returns
Type Description
ListReportsResponse.Builder

addReports(int index, Report.Builder builderForValue)

public ListReportsResponse.Builder addReports(int index, Report.Builder builderForValue)

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Parameters
Name Description
index int
builderForValue Report.Builder
Returns
Type Description
ListReportsResponse.Builder

addReportsBuilder()

public Report.Builder addReportsBuilder()

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Returns
Type Description
Report.Builder

addReportsBuilder(int index)

public Report.Builder addReportsBuilder(int index)

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Parameter
Name Description
index int
Returns
Type Description
Report.Builder

addUnreachable(String value)

public ListReportsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListReportsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListReportsResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListReportsResponse.Builder

This builder for chaining.

build()

public ListReportsResponse build()
Returns
Type Description
ListReportsResponse

buildPartial()

public ListReportsResponse buildPartial()
Returns
Type Description
ListReportsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListReportsResponse.Builder clearNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ListReportsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReports()

public ListReportsResponse.Builder clearReports()

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Returns
Type Description
ListReportsResponse.Builder

clearUnreachable()

public ListReportsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListReportsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListReportsResponse getDefaultInstanceForType()
Returns
Type Description
ListReportsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getReports(int index)

public Report getReports(int index)

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Parameter
Name Description
index int
Returns
Type Description
Report

getReportsBuilder(int index)

public Report.Builder getReportsBuilder(int index)

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Parameter
Name Description
index int
Returns
Type Description
Report.Builder

getReportsBuilderList()

public List<Report.Builder> getReportsBuilderList()

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Returns
Type Description
List<Builder>

getReportsCount()

public int getReportsCount()

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Returns
Type Description
int

getReportsList()

public List<Report> getReportsList()

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Returns
Type Description
List<Report>

getReportsOrBuilder(int index)

public ReportOrBuilder getReportsOrBuilder(int index)

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Parameter
Name Description
index int
Returns
Type Description
ReportOrBuilder

getReportsOrBuilderList()

public List<? extends ReportOrBuilder> getReportsOrBuilderList()

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Returns
Type Description
List<? extends com.google.cloud.migrationcenter.v1.ReportOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

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)

Locations that could not be reached.

repeated string unreachable = 3;

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

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeReports(int index)

public ListReportsResponse.Builder removeReports(int index)

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Parameter
Name Description
index int
Returns
Type Description
ListReportsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListReportsResponse.Builder setNextPageToken(String value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListReportsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListReportsResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListReportsResponse.Builder

This builder for chaining.

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

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

setReports(int index, Report value)

public ListReportsResponse.Builder setReports(int index, Report value)

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Parameters
Name Description
index int
value Report
Returns
Type Description
ListReportsResponse.Builder

setReports(int index, Report.Builder builderForValue)

public ListReportsResponse.Builder setReports(int index, Report.Builder builderForValue)

The list of Reports.

repeated .google.cloud.migrationcenter.v1.Report reports = 1;

Parameters
Name Description
index int
builderForValue Report.Builder
Returns
Type Description
ListReportsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListReportsResponse.Builder

This builder for chaining.