Class SearchCatalogResponse.Builder (1.89.0)

public static final class SearchCatalogResponse.Builder extends GeneratedMessage.Builder<SearchCatalogResponse.Builder> implements SearchCatalogResponseOrBuilder

Response message for SearchCatalog.

Protobuf type google.cloud.datacatalog.v1beta1.SearchCatalogResponse

Static Methods

getDescriptor()

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

Methods

addAllResults(Iterable<? extends SearchCatalogResult> values)

public SearchCatalogResponse.Builder addAllResults(Iterable<? extends SearchCatalogResult> values)

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.datacatalog.v1beta1.SearchCatalogResult>
Returns
Type Description
SearchCatalogResponse.Builder

addAllUnreachable(Iterable<String> values)

public SearchCatalogResponse.Builder addAllUnreachable(Iterable<String> values)

Unreachable locations. Search result does not include data from those locations. Users can get additional information on the error by repeating the search request with a more restrictive parameter -- setting the value for SearchDataCatalogRequest.scope.restricted_locations.

repeated string unreachable = 6;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
SearchCatalogResponse.Builder

This builder for chaining.

addResults(SearchCatalogResult value)

public SearchCatalogResponse.Builder addResults(SearchCatalogResult value)

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Parameter
Name Description
value SearchCatalogResult
Returns
Type Description
SearchCatalogResponse.Builder

addResults(SearchCatalogResult.Builder builderForValue)

public SearchCatalogResponse.Builder addResults(SearchCatalogResult.Builder builderForValue)

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Parameter
Name Description
builderForValue SearchCatalogResult.Builder
Returns
Type Description
SearchCatalogResponse.Builder

addResults(int index, SearchCatalogResult value)

public SearchCatalogResponse.Builder addResults(int index, SearchCatalogResult value)

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Parameters
Name Description
index int
value SearchCatalogResult
Returns
Type Description
SearchCatalogResponse.Builder

addResults(int index, SearchCatalogResult.Builder builderForValue)

public SearchCatalogResponse.Builder addResults(int index, SearchCatalogResult.Builder builderForValue)

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Parameters
Name Description
index int
builderForValue SearchCatalogResult.Builder
Returns
Type Description
SearchCatalogResponse.Builder

addResultsBuilder()

public SearchCatalogResult.Builder addResultsBuilder()

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Returns
Type Description
SearchCatalogResult.Builder

addResultsBuilder(int index)

public SearchCatalogResult.Builder addResultsBuilder(int index)

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchCatalogResult.Builder

addUnreachable(String value)

public SearchCatalogResponse.Builder addUnreachable(String value)

Unreachable locations. Search result does not include data from those locations. Users can get additional information on the error by repeating the search request with a more restrictive parameter -- setting the value for SearchDataCatalogRequest.scope.restricted_locations.

repeated string unreachable = 6;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
SearchCatalogResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public SearchCatalogResponse.Builder addUnreachableBytes(ByteString value)

Unreachable locations. Search result does not include data from those locations. Users can get additional information on the error by repeating the search request with a more restrictive parameter -- setting the value for SearchDataCatalogRequest.scope.restricted_locations.

repeated string unreachable = 6;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
SearchCatalogResponse.Builder

This builder for chaining.

build()

public SearchCatalogResponse build()
Returns
Type Description
SearchCatalogResponse

buildPartial()

public SearchCatalogResponse buildPartial()
Returns
Type Description
SearchCatalogResponse

clear()

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

clearNextPageToken()

public SearchCatalogResponse.Builder clearNextPageToken()

The token that can be used to retrieve the next page of results.

string next_page_token = 3;

Returns
Type Description
SearchCatalogResponse.Builder

This builder for chaining.

clearResults()

public SearchCatalogResponse.Builder clearResults()

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Returns
Type Description
SearchCatalogResponse.Builder

clearTotalSize()

public SearchCatalogResponse.Builder clearTotalSize()

The approximate total number of entries matched by the query.

int32 total_size = 2;

Returns
Type Description
SearchCatalogResponse.Builder

This builder for chaining.

clearUnreachable()

public SearchCatalogResponse.Builder clearUnreachable()

Unreachable locations. Search result does not include data from those locations. Users can get additional information on the error by repeating the search request with a more restrictive parameter -- setting the value for SearchDataCatalogRequest.scope.restricted_locations.

repeated string unreachable = 6;

Returns
Type Description
SearchCatalogResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public SearchCatalogResponse getDefaultInstanceForType()
Returns
Type Description
SearchCatalogResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

The token that can be used to retrieve the next page of results.

string next_page_token = 3;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The token that can be used to retrieve the next page of results.

string next_page_token = 3;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getResults(int index)

public SearchCatalogResult getResults(int index)

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchCatalogResult

getResultsBuilder(int index)

public SearchCatalogResult.Builder getResultsBuilder(int index)

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchCatalogResult.Builder

getResultsBuilderList()

public List<SearchCatalogResult.Builder> getResultsBuilderList()

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Returns
Type Description
List<Builder>

getResultsCount()

public int getResultsCount()

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Returns
Type Description
int

getResultsList()

public List<SearchCatalogResult> getResultsList()

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Returns
Type Description
List<SearchCatalogResult>

getResultsOrBuilder(int index)

public SearchCatalogResultOrBuilder getResultsOrBuilder(int index)

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchCatalogResultOrBuilder

getResultsOrBuilderList()

public List<? extends SearchCatalogResultOrBuilder> getResultsOrBuilderList()

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Returns
Type Description
List<? extends com.google.cloud.datacatalog.v1beta1.SearchCatalogResultOrBuilder>

getTotalSize()

public int getTotalSize()

The approximate total number of entries matched by the query.

int32 total_size = 2;

Returns
Type Description
int

The totalSize.

getUnreachable(int index)

public String getUnreachable(int index)

Unreachable locations. Search result does not include data from those locations. Users can get additional information on the error by repeating the search request with a more restrictive parameter -- setting the value for SearchDataCatalogRequest.scope.restricted_locations.

repeated string unreachable = 6;

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)

Unreachable locations. Search result does not include data from those locations. Users can get additional information on the error by repeating the search request with a more restrictive parameter -- setting the value for SearchDataCatalogRequest.scope.restricted_locations.

repeated string unreachable = 6;

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

Unreachable locations. Search result does not include data from those locations. Users can get additional information on the error by repeating the search request with a more restrictive parameter -- setting the value for SearchDataCatalogRequest.scope.restricted_locations.

repeated string unreachable = 6;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Unreachable locations. Search result does not include data from those locations. Users can get additional information on the error by repeating the search request with a more restrictive parameter -- setting the value for SearchDataCatalogRequest.scope.restricted_locations.

repeated string unreachable = 6;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchCatalogResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeResults(int index)

public SearchCatalogResponse.Builder removeResults(int index)

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchCatalogResponse.Builder

setNextPageToken(String value)

public SearchCatalogResponse.Builder setNextPageToken(String value)

The token that can be used to retrieve the next page of results.

string next_page_token = 3;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
SearchCatalogResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public SearchCatalogResponse.Builder setNextPageTokenBytes(ByteString value)

The token that can be used to retrieve the next page of results.

string next_page_token = 3;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
SearchCatalogResponse.Builder

This builder for chaining.

setResults(int index, SearchCatalogResult value)

public SearchCatalogResponse.Builder setResults(int index, SearchCatalogResult value)

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Parameters
Name Description
index int
value SearchCatalogResult
Returns
Type Description
SearchCatalogResponse.Builder

setResults(int index, SearchCatalogResult.Builder builderForValue)

public SearchCatalogResponse.Builder setResults(int index, SearchCatalogResult.Builder builderForValue)

Search results.

repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;

Parameters
Name Description
index int
builderForValue SearchCatalogResult.Builder
Returns
Type Description
SearchCatalogResponse.Builder

setTotalSize(int value)

public SearchCatalogResponse.Builder setTotalSize(int value)

The approximate total number of entries matched by the query.

int32 total_size = 2;

Parameter
Name Description
value int

The totalSize to set.

Returns
Type Description
SearchCatalogResponse.Builder

This builder for chaining.

setUnreachable(int index, String value)

public SearchCatalogResponse.Builder setUnreachable(int index, String value)

Unreachable locations. Search result does not include data from those locations. Users can get additional information on the error by repeating the search request with a more restrictive parameter -- setting the value for SearchDataCatalogRequest.scope.restricted_locations.

repeated string unreachable = 6;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
SearchCatalogResponse.Builder

This builder for chaining.