Class SearchCatalogResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchCatalogResponse.Builder>
com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse.Builder
All Implemented Interfaces:
SearchCatalogResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SearchCatalogResponse

public static final class SearchCatalogResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchCatalogResponse.Builder> implements SearchCatalogResponseOrBuilder
 Response message for
 [SearchCatalog][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog].
 
Protobuf type google.cloud.datacatalog.v1beta1.SearchCatalogResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SearchCatalogResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SearchCatalogResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SearchCatalogResponse.Builder>
    • getDefaultInstanceForType

      public SearchCatalogResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SearchCatalogResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SearchCatalogResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SearchCatalogResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchCatalogResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SearchCatalogResponse.Builder>
    • mergeFrom

      public SearchCatalogResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchCatalogResponse.Builder>
      Throws:
      IOException
    • getResultsList

      public List<SearchCatalogResult> getResultsList()
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
      Specified by:
      getResultsList in interface SearchCatalogResponseOrBuilder
    • getResultsCount

      public int getResultsCount()
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
      Specified by:
      getResultsCount in interface SearchCatalogResponseOrBuilder
    • getResults

      public SearchCatalogResult getResults(int index)
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
      Specified by:
      getResults in interface SearchCatalogResponseOrBuilder
    • setResults

      public SearchCatalogResponse.Builder setResults(int index, SearchCatalogResult value)
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
    • setResults

      public SearchCatalogResponse.Builder setResults(int index, SearchCatalogResult.Builder builderForValue)
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
    • addResults

       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
    • addResults

      public SearchCatalogResponse.Builder addResults(int index, SearchCatalogResult value)
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
    • addResults

      public SearchCatalogResponse.Builder addResults(SearchCatalogResult.Builder builderForValue)
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
    • addResults

      public SearchCatalogResponse.Builder addResults(int index, SearchCatalogResult.Builder builderForValue)
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
    • addAllResults

      public SearchCatalogResponse.Builder addAllResults(Iterable<? extends SearchCatalogResult> values)
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
    • clearResults

      public SearchCatalogResponse.Builder clearResults()
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
    • removeResults

      public SearchCatalogResponse.Builder removeResults(int index)
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
    • getResultsBuilder

      public SearchCatalogResult.Builder getResultsBuilder(int index)
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
    • getResultsOrBuilder

      public SearchCatalogResultOrBuilder getResultsOrBuilder(int index)
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
      Specified by:
      getResultsOrBuilder in interface SearchCatalogResponseOrBuilder
    • getResultsOrBuilderList

      public List<? extends SearchCatalogResultOrBuilder> getResultsOrBuilderList()
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
      Specified by:
      getResultsOrBuilderList in interface SearchCatalogResponseOrBuilder
    • addResultsBuilder

      public SearchCatalogResult.Builder addResultsBuilder()
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
    • addResultsBuilder

      public SearchCatalogResult.Builder addResultsBuilder(int index)
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
    • getResultsBuilderList

      public List<SearchCatalogResult.Builder> getResultsBuilderList()
       Search results.
       
      repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1;
    • getTotalSize

      public int getTotalSize()
       The approximate total number of entries matched by the query.
       
      int32 total_size = 2;
      Specified by:
      getTotalSize in interface SearchCatalogResponseOrBuilder
      Returns:
      The totalSize.
    • setTotalSize

      public SearchCatalogResponse.Builder setTotalSize(int value)
       The approximate total number of entries matched by the query.
       
      int32 total_size = 2;
      Parameters:
      value - The totalSize to set.
      Returns:
      This builder for chaining.
    • clearTotalSize

      public SearchCatalogResponse.Builder clearTotalSize()
       The approximate total number of entries matched by the query.
       
      int32 total_size = 2;
      Returns:
      This builder for chaining.
    • getNextPageToken

      public String getNextPageToken()
       The token that can be used to retrieve the next page of results.
       
      string next_page_token = 3;
      Specified by:
      getNextPageToken in interface SearchCatalogResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       The token that can be used to retrieve the next page of results.
       
      string next_page_token = 3;
      Specified by:
      getNextPageTokenBytes in interface SearchCatalogResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public SearchCatalogResponse.Builder setNextPageToken(String value)
       The token that can be used to retrieve the next page of results.
       
      string next_page_token = 3;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public SearchCatalogResponse.Builder clearNextPageToken()
       The token that can be used to retrieve the next page of results.
       
      string next_page_token = 3;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public SearchCatalogResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       The token that can be used to retrieve the next page of results.
       
      string next_page_token = 3;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • getUnreachableList

      public com.google.protobuf.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;
      Specified by:
      getUnreachableList in interface SearchCatalogResponseOrBuilder
      Returns:
      A list containing the unreachable.
    • 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;
      Specified by:
      getUnreachableCount in interface SearchCatalogResponseOrBuilder
      Returns:
      The count of unreachable.
    • getUnreachable

      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;
      Specified by:
      getUnreachable in interface SearchCatalogResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The unreachable at the given index.
    • getUnreachableBytes

      public com.google.protobuf.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;
      Specified by:
      getUnreachableBytes in interface SearchCatalogResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

      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:
      index - The index to set the value at.
      value - The unreachable to set.
      Returns:
      This builder for chaining.
    • addUnreachable

      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;
      Parameters:
      value - The unreachable to add.
      Returns:
      This builder for chaining.
    • addAllUnreachable

      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;
      Parameters:
      values - The unreachable to add.
      Returns:
      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:
      This builder for chaining.
    • addUnreachableBytes

      public SearchCatalogResponse.Builder addUnreachableBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes of the unreachable to add.
      Returns:
      This builder for chaining.