Class ListConnectClustersResponse.Builder (0.16.1)

public static final class ListConnectClustersResponse.Builder extends GeneratedMessageV3.Builder<ListConnectClustersResponse.Builder> implements ListConnectClustersResponseOrBuilder

Response for ListConnectClusters.

Protobuf type google.cloud.managedkafka.v1.ListConnectClustersResponse

Static Methods

getDescriptor()

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

Methods

addAllConnectClusters(Iterable<? extends ConnectCluster> values)

public ListConnectClustersResponse.Builder addAllConnectClusters(Iterable<? extends ConnectCluster> values)

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.managedkafka.v1.ConnectCluster>
Returns
Type Description
ListConnectClustersResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addConnectClusters(ConnectCluster value)

public ListConnectClustersResponse.Builder addConnectClusters(ConnectCluster value)

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Parameter
Name Description
value ConnectCluster
Returns
Type Description
ListConnectClustersResponse.Builder

addConnectClusters(ConnectCluster.Builder builderForValue)

public ListConnectClustersResponse.Builder addConnectClusters(ConnectCluster.Builder builderForValue)

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Parameter
Name Description
builderForValue ConnectCluster.Builder
Returns
Type Description
ListConnectClustersResponse.Builder

addConnectClusters(int index, ConnectCluster value)

public ListConnectClustersResponse.Builder addConnectClusters(int index, ConnectCluster value)

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Parameters
Name Description
index int
value ConnectCluster
Returns
Type Description
ListConnectClustersResponse.Builder

addConnectClusters(int index, ConnectCluster.Builder builderForValue)

public ListConnectClustersResponse.Builder addConnectClusters(int index, ConnectCluster.Builder builderForValue)

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Parameters
Name Description
index int
builderForValue ConnectCluster.Builder
Returns
Type Description
ListConnectClustersResponse.Builder

addConnectClustersBuilder()

public ConnectCluster.Builder addConnectClustersBuilder()

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Returns
Type Description
ConnectCluster.Builder

addConnectClustersBuilder(int index)

public ConnectCluster.Builder addConnectClustersBuilder(int index)

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Parameter
Name Description
index int
Returns
Type Description
ConnectCluster.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListConnectClustersResponse build()
Returns
Type Description
ListConnectClustersResponse

buildPartial()

public ListConnectClustersResponse buildPartial()
Returns
Type Description
ListConnectClustersResponse

clear()

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

clearConnectClusters()

public ListConnectClustersResponse.Builder clearConnectClusters()

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Returns
Type Description
ListConnectClustersResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListConnectClustersResponse.Builder clearNextPageToken()

A token that can be sent as page_token to retrieve the next page of results. If this field is omitted, there are no more results.

string next_page_token = 2;

Returns
Type Description
ListConnectClustersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListConnectClustersResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListConnectClustersResponse.Builder

This builder for chaining.

clone()

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

getConnectClusters(int index)

public ConnectCluster getConnectClusters(int index)

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Parameter
Name Description
index int
Returns
Type Description
ConnectCluster

getConnectClustersBuilder(int index)

public ConnectCluster.Builder getConnectClustersBuilder(int index)

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Parameter
Name Description
index int
Returns
Type Description
ConnectCluster.Builder

getConnectClustersBuilderList()

public List<ConnectCluster.Builder> getConnectClustersBuilderList()

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Returns
Type Description
List<Builder>

getConnectClustersCount()

public int getConnectClustersCount()

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Returns
Type Description
int

getConnectClustersList()

public List<ConnectCluster> getConnectClustersList()

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Returns
Type Description
List<ConnectCluster>

getConnectClustersOrBuilder(int index)

public ConnectClusterOrBuilder getConnectClustersOrBuilder(int index)

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Parameter
Name Description
index int
Returns
Type Description
ConnectClusterOrBuilder

getConnectClustersOrBuilderList()

public List<? extends ConnectClusterOrBuilder> getConnectClustersOrBuilderList()

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Returns
Type Description
List<? extends com.google.cloud.managedkafka.v1.ConnectClusterOrBuilder>

getDefaultInstanceForType()

public ListConnectClustersResponse getDefaultInstanceForType()
Returns
Type Description
ListConnectClustersResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token that can be sent as page_token to retrieve the next page of results. If this field is omitted, there are no more results.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token that can be sent as page_token to retrieve the next page of results. If this field is omitted, there are no more results.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeConnectClusters(int index)

public ListConnectClustersResponse.Builder removeConnectClusters(int index)

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Parameter
Name Description
index int
Returns
Type Description
ListConnectClustersResponse.Builder

setConnectClusters(int index, ConnectCluster value)

public ListConnectClustersResponse.Builder setConnectClusters(int index, ConnectCluster value)

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Parameters
Name Description
index int
value ConnectCluster
Returns
Type Description
ListConnectClustersResponse.Builder

setConnectClusters(int index, ConnectCluster.Builder builderForValue)

public ListConnectClustersResponse.Builder setConnectClusters(int index, ConnectCluster.Builder builderForValue)

The list of Connect clusters in the requested parent.

repeated .google.cloud.managedkafka.v1.ConnectCluster connect_clusters = 1;

Parameters
Name Description
index int
builderForValue ConnectCluster.Builder
Returns
Type Description
ListConnectClustersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListConnectClustersResponse.Builder setNextPageToken(String value)

A token that can be sent as page_token to retrieve the next page of results. If this field is omitted, there are no more results.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListConnectClustersResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListConnectClustersResponse.Builder setNextPageTokenBytes(ByteString value)

A token that can be sent as page_token to retrieve the next page of results. If this field is omitted, there are no more results.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListConnectClustersResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.