Class 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.GeneratedMessageV3.Builder<SearchCatalogResponse.Builder>
    implements SearchCatalogResponseOrBuilder
     Response message for
     [SearchCatalog][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog].
     
    Protobuf type google.cloud.datacatalog.v1beta1.SearchCatalogResponse
    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public SearchCatalogResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SearchCatalogResponse.Builder>
      • clearField

        public SearchCatalogResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchCatalogResponse.Builder>
      • clearOneof

        public SearchCatalogResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SearchCatalogResponse.Builder>
      • setRepeatedField

        public SearchCatalogResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchCatalogResponse.Builder>
      • addRepeatedField

        public SearchCatalogResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchCatalogResponse.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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;
      • 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.
      • 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.
      • setUnknownFields

        public final SearchCatalogResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchCatalogResponse.Builder>
      • mergeUnknownFields

        public final SearchCatalogResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchCatalogResponse.Builder>