Class SearchConnectionsResponse.Builder (3.56.0)

public static final class SearchConnectionsResponse.Builder extends GeneratedMessageV3.Builder<SearchConnectionsResponse.Builder> implements SearchConnectionsResponseOrBuilder

Response message for SearchConnections.

Protobuf type google.privacy.dlp.v2.SearchConnectionsResponse

Static Methods

getDescriptor()

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

Methods

addAllConnections(Iterable<? extends Connection> values)

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

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

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

addConnections(Connection value)

public SearchConnectionsResponse.Builder addConnections(Connection value)

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

Parameter
Name Description
value Connection
Returns
Type Description
SearchConnectionsResponse.Builder

addConnections(Connection.Builder builderForValue)

public SearchConnectionsResponse.Builder addConnections(Connection.Builder builderForValue)

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

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

addConnections(int index, Connection value)

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

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

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

addConnections(int index, Connection.Builder builderForValue)

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

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

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

addConnectionsBuilder()

public Connection.Builder addConnectionsBuilder()

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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 that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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 SearchConnectionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchConnectionsResponse.Builder
Overrides

build()

public SearchConnectionsResponse build()
Returns
Type Description
SearchConnectionsResponse

buildPartial()

public SearchConnectionsResponse buildPartial()
Returns
Type Description
SearchConnectionsResponse

clear()

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

clearConnections()

public SearchConnectionsResponse.Builder clearConnections()

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

Returns
Type Description
SearchConnectionsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getConnections(int index)

public Connection getConnections(int index)

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

Parameter
Name Description
index int
Returns
Type Description
Connection

getConnectionsBuilder(int index)

public Connection.Builder getConnectionsBuilder(int index)

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

Parameter
Name Description
index int
Returns
Type Description
Connection.Builder

getConnectionsBuilderList()

public List<Connection.Builder> getConnectionsBuilderList()

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

Returns
Type Description
List<Builder>

getConnectionsCount()

public int getConnectionsCount()

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

Returns
Type Description
int

getConnectionsList()

public List<Connection> getConnectionsList()

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

Returns
Type Description
List<Connection>

getConnectionsOrBuilder(int index)

public ConnectionOrBuilder getConnectionsOrBuilder(int index)

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

Parameter
Name Description
index int
Returns
Type Description
ConnectionOrBuilder

getConnectionsOrBuilderList()

public List<? extends ConnectionOrBuilder> getConnectionsOrBuilderList()

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.ConnectionOrBuilder>

getDefaultInstanceForType()

public SearchConnectionsResponse getDefaultInstanceForType()
Returns
Type Description
SearchConnectionsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

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
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchConnectionsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeConnections(int index)

public SearchConnectionsResponse.Builder removeConnections(int index)

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

Parameter
Name Description
index int
Returns
Type Description
SearchConnectionsResponse.Builder

setConnections(int index, Connection value)

public SearchConnectionsResponse.Builder setConnections(int index, Connection value)

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

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

setConnections(int index, Connection.Builder builderForValue)

public SearchConnectionsResponse.Builder setConnections(int index, Connection.Builder builderForValue)

List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public SearchConnectionsResponse.Builder setNextPageToken(String value)

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

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
SearchConnectionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public SearchConnectionsResponse.Builder setNextPageTokenBytes(ByteString value)

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

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
SearchConnectionsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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