Class ListCollectorsResponse.Builder (0.32.0)

public static final class ListCollectorsResponse.Builder extends GeneratedMessageV3.Builder<ListCollectorsResponse.Builder> implements ListCollectorsResponseOrBuilder

Message for response to listing Collectors.

Protobuf type google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse

Static Methods

getDescriptor()

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

Methods

addAllCollectors(Iterable<? extends Collector> values)

public ListCollectorsResponse.Builder addAllCollectors(Iterable<? extends Collector> values)

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.rapidmigrationassessment.v1.Collector>
Returns
Type Description
ListCollectorsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListCollectorsResponse.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
ListCollectorsResponse.Builder

This builder for chaining.

addCollectors(Collector value)

public ListCollectorsResponse.Builder addCollectors(Collector value)

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Parameter
Name Description
value Collector
Returns
Type Description
ListCollectorsResponse.Builder

addCollectors(Collector.Builder builderForValue)

public ListCollectorsResponse.Builder addCollectors(Collector.Builder builderForValue)

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Parameter
Name Description
builderForValue Collector.Builder
Returns
Type Description
ListCollectorsResponse.Builder

addCollectors(int index, Collector value)

public ListCollectorsResponse.Builder addCollectors(int index, Collector value)

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Parameters
Name Description
index int
value Collector
Returns
Type Description
ListCollectorsResponse.Builder

addCollectors(int index, Collector.Builder builderForValue)

public ListCollectorsResponse.Builder addCollectors(int index, Collector.Builder builderForValue)

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Parameters
Name Description
index int
builderForValue Collector.Builder
Returns
Type Description
ListCollectorsResponse.Builder

addCollectorsBuilder()

public Collector.Builder addCollectorsBuilder()

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Returns
Type Description
Collector.Builder

addCollectorsBuilder(int index)

public Collector.Builder addCollectorsBuilder(int index)

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Parameter
Name Description
index int
Returns
Type Description
Collector.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListCollectorsResponse.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
ListCollectorsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListCollectorsResponse.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
ListCollectorsResponse.Builder

This builder for chaining.

build()

public ListCollectorsResponse build()
Returns
Type Description
ListCollectorsResponse

buildPartial()

public ListCollectorsResponse buildPartial()
Returns
Type Description
ListCollectorsResponse

clear()

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

clearCollectors()

public ListCollectorsResponse.Builder clearCollectors()

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Returns
Type Description
ListCollectorsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListCollectorsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListCollectorsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListCollectorsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListCollectorsResponse.Builder

This builder for chaining.

clone()

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

getCollectors(int index)

public Collector getCollectors(int index)

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Parameter
Name Description
index int
Returns
Type Description
Collector

getCollectorsBuilder(int index)

public Collector.Builder getCollectorsBuilder(int index)

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Parameter
Name Description
index int
Returns
Type Description
Collector.Builder

getCollectorsBuilderList()

public List<Collector.Builder> getCollectorsBuilderList()

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Returns
Type Description
List<Builder>

getCollectorsCount()

public int getCollectorsCount()

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Returns
Type Description
int

getCollectorsList()

public List<Collector> getCollectorsList()

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Returns
Type Description
List<Collector>

getCollectorsOrBuilder(int index)

public CollectorOrBuilder getCollectorsOrBuilder(int index)

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Parameter
Name Description
index int
Returns
Type Description
CollectorOrBuilder

getCollectorsOrBuilderList()

public List<? extends CollectorOrBuilder> getCollectorsOrBuilderList()

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Returns
Type Description
List<? extends com.google.cloud.rapidmigrationassessment.v1.CollectorOrBuilder>

getDefaultInstanceForType()

public ListCollectorsResponse getDefaultInstanceForType()
Returns
Type Description
ListCollectorsResponse

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.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCollectors(int index)

public ListCollectorsResponse.Builder removeCollectors(int index)

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Parameter
Name Description
index int
Returns
Type Description
ListCollectorsResponse.Builder

setCollectors(int index, Collector value)

public ListCollectorsResponse.Builder setCollectors(int index, Collector value)

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Parameters
Name Description
index int
value Collector
Returns
Type Description
ListCollectorsResponse.Builder

setCollectors(int index, Collector.Builder builderForValue)

public ListCollectorsResponse.Builder setCollectors(int index, Collector.Builder builderForValue)

The list of Collectors.

repeated .google.cloud.rapidmigrationassessment.v1.Collector collectors = 1;

Parameters
Name Description
index int
builderForValue Collector.Builder
Returns
Type Description
ListCollectorsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListCollectorsResponse.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
ListCollectorsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCollectorsResponse.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
ListCollectorsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListCollectorsResponse.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
ListCollectorsResponse.Builder

This builder for chaining.