Class ListConnectionsResponse.Builder (3.48.0)

public static final class ListConnectionsResponse.Builder extends GeneratedMessageV3.Builder<ListConnectionsResponse.Builder> implements ListConnectionsResponseOrBuilder

Response message for ListConnections.

Protobuf type google.privacy.dlp.v2.ListConnectionsResponse

Static Methods

getDescriptor()

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

Methods

addAllConnections(Iterable<? extends Connection> values)

public ListConnectionsResponse.Builder addAllConnections(Iterable<? extends Connection> values)

List of connections.

repeated .google.privacy.dlp.v2.Connection connections = 1;

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.Connection>
Returns
Type Description
ListConnectionsResponse.Builder

addConnections(Connection value)

public ListConnectionsResponse.Builder addConnections(Connection value)

List of connections.

repeated .google.privacy.dlp.v2.Connection connections = 1;

Parameter
Name Description
value Connection
Returns
Type Description
ListConnectionsResponse.Builder

addConnections(Connection.Builder builderForValue)

public ListConnectionsResponse.Builder addConnections(Connection.Builder builderForValue)

List of connections.

repeated .google.privacy.dlp.v2.Connection connections = 1;

Parameter
Name Description
builderForValue Connection.Builder
Returns
Type Description
ListConnectionsResponse.Builder

addConnections(int index, Connection value)

public ListConnectionsResponse.Builder addConnections(int index, Connection value)

List of connections.

repeated .google.privacy.dlp.v2.Connection connections = 1;

Parameters
Name Description
index int
value Connection
Returns
Type Description
ListConnectionsResponse.Builder

addConnections(int index, Connection.Builder builderForValue)

public ListConnectionsResponse.Builder addConnections(int index, Connection.Builder builderForValue)

List of connections.

repeated .google.privacy.dlp.v2.Connection connections = 1;

Parameters
Name Description
index int
builderForValue Connection.Builder
Returns
Type Description
ListConnectionsResponse.Builder

addConnectionsBuilder()

public Connection.Builder addConnectionsBuilder()

List of connections.

repeated .google.privacy.dlp.v2.Connection connections = 1;

Returns
Type Description
Connection.Builder

addConnectionsBuilder(int index)

public Connection.Builder addConnectionsBuilder(int index)

List of connections.

repeated .google.privacy.dlp.v2.Connection connections = 1;

Parameter
Name Description
index int
Returns
Type Description
Connection.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListConnectionsResponse build()
Returns
Type Description
ListConnectionsResponse

buildPartial()

public ListConnectionsResponse buildPartial()
Returns
Type Description
ListConnectionsResponse

clear()

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

clearConnections()

public ListConnectionsResponse.Builder clearConnections()

List of connections.

repeated .google.privacy.dlp.v2.Connection connections = 1;

Returns
Type Description
ListConnectionsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListConnectionsResponse.Builder clearNextPageToken()

Token to retrieve the next page of results. An empty value means there are no more results.

string next_page_token = 2;

Returns
Type Description
ListConnectionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getConnections(int index)

public Connection getConnections(int index)

List of connections.

repeated .google.privacy.dlp.v2.Connection connections = 1;

Parameter
Name Description
index int
Returns
Type Description
Connection