Class ListCollectorsResponse.Builder (0.22.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.rapidmigrationassessment.v1.Collector>
Returns
TypeDescription
ListCollectorsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListCollectorsResponse.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
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
NameDescription
valueCollector
Returns
TypeDescription
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
NameDescription
builderForValueCollector.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCollector
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCollector.Builder
Returns
TypeDescription
ListCollectorsResponse.Builder

addCollectorsBuilder()

public Collector.Builder addCollectorsBuilder()

The list of Collectors.

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

Returns
TypeDescription
Collector.Builder

addCollectorsBuilder(int index)

public Collector.Builder addCollectorsBuilder(int index)

The list of Collectors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Collector.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListCollectorsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListCollectorsResponse.Builder

This builder for chaining.

build()

public ListCollectorsResponse build()
Returns
TypeDescription
ListCollectorsResponse

buildPartial()

public ListCollectorsResponse buildPartial()
Returns
TypeDescription
ListCollectorsResponse

clear()

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

clearCollectors()

public ListCollectorsResponse.Builder clearCollectors()

The list of Collectors.

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

Returns
TypeDescription
ListCollectorsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListCollectorsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListCollectorsResponse.Builder

This builder for chaining.

clone()

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

getCollectors(int index)

public Collector getCollectors(int index)

The list of Collectors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Collector

getCollectorsBuilder(int index)

public Collector.Builder getCollectorsBuilder(int index)

The list of Collectors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Collector.Builder

getCollectorsBuilderList()

public List<Collector.Builder> getCollectorsBuilderList()

The list of Collectors.

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

Returns
TypeDescription
List<Builder>

getCollectorsCount()

public int getCollectorsCount()

The list of Collectors.

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

Returns
TypeDescription
int

getCollectorsList()

public List<Collector> getCollectorsList()

The list of Collectors.

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

Returns
TypeDescription
List<Collector>

getCollectorsOrBuilder(int index)

public CollectorOrBuilder getCollectorsOrBuilder(int index)

The list of Collectors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CollectorOrBuilder

getCollectorsOrBuilderList()

public List<? extends CollectorOrBuilder> getCollectorsOrBuilderList()

The list of Collectors.

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

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

getDefaultInstanceForType()

public ListCollectorsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListCollectorsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

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

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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

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

public ListCollectorsResponse.Builder mergeFrom(ListCollectorsResponse other)
Parameter
NameDescription
otherListCollectorsResponse
Returns
TypeDescription
ListCollectorsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListCollectorsResponse.Builder

This builder for chaining.