Class SearchResponse.Builder

  • All Implemented Interfaces:
    SearchResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    SearchResponse

    public static final class SearchResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Builder>
    implements SearchResponseOrBuilder
     Response message for
     [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].
     
    Protobuf type google.cloud.enterpriseknowledgegraph.v1.SearchResponse
    • 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<SearchResponse.Builder>
      • clear

        public SearchResponse.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<SearchResponse.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<SearchResponse.Builder>
      • getDefaultInstanceForType

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

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

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

        public SearchResponse.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<SearchResponse.Builder>
      • setField

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

        public SearchResponse.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<SearchResponse.Builder>
      • clearOneof

        public SearchResponse.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<SearchResponse.Builder>
      • setRepeatedField

        public SearchResponse.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<SearchResponse.Builder>
      • addRepeatedField

        public SearchResponse.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<SearchResponse.Builder>
      • mergeFrom

        public SearchResponse.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<SearchResponse.Builder>
      • isInitialized

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

        public SearchResponse.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<SearchResponse.Builder>
        Throws:
        IOException
      • hasContext

        public boolean hasContext()
         The local context applicable for the response. See more details at
         http://www.w3.org/TR/json-ld/#context-definitions.
         
        .google.protobuf.Value context = 1;
        Specified by:
        hasContext in interface SearchResponseOrBuilder
        Returns:
        Whether the context field is set.
      • getContext

        public com.google.protobuf.Value getContext()
         The local context applicable for the response. See more details at
         http://www.w3.org/TR/json-ld/#context-definitions.
         
        .google.protobuf.Value context = 1;
        Specified by:
        getContext in interface SearchResponseOrBuilder
        Returns:
        The context.
      • setContext

        public SearchResponse.Builder setContext​(com.google.protobuf.Value value)
         The local context applicable for the response. See more details at
         http://www.w3.org/TR/json-ld/#context-definitions.
         
        .google.protobuf.Value context = 1;
      • setContext

        public SearchResponse.Builder setContext​(com.google.protobuf.Value.Builder builderForValue)
         The local context applicable for the response. See more details at
         http://www.w3.org/TR/json-ld/#context-definitions.
         
        .google.protobuf.Value context = 1;
      • mergeContext

        public SearchResponse.Builder mergeContext​(com.google.protobuf.Value value)
         The local context applicable for the response. See more details at
         http://www.w3.org/TR/json-ld/#context-definitions.
         
        .google.protobuf.Value context = 1;
      • clearContext

        public SearchResponse.Builder clearContext()
         The local context applicable for the response. See more details at
         http://www.w3.org/TR/json-ld/#context-definitions.
         
        .google.protobuf.Value context = 1;
      • getContextBuilder

        public com.google.protobuf.Value.Builder getContextBuilder()
         The local context applicable for the response. See more details at
         http://www.w3.org/TR/json-ld/#context-definitions.
         
        .google.protobuf.Value context = 1;
      • getContextOrBuilder

        public com.google.protobuf.ValueOrBuilder getContextOrBuilder()
         The local context applicable for the response. See more details at
         http://www.w3.org/TR/json-ld/#context-definitions.
         
        .google.protobuf.Value context = 1;
        Specified by:
        getContextOrBuilder in interface SearchResponseOrBuilder
      • hasType

        public boolean hasType()
         The schema type of top-level JSON-LD object, e.g. ItemList.
         
        .google.protobuf.Value type = 2;
        Specified by:
        hasType in interface SearchResponseOrBuilder
        Returns:
        Whether the type field is set.
      • getType

        public com.google.protobuf.Value getType()
         The schema type of top-level JSON-LD object, e.g. ItemList.
         
        .google.protobuf.Value type = 2;
        Specified by:
        getType in interface SearchResponseOrBuilder
        Returns:
        The type.
      • setType

        public SearchResponse.Builder setType​(com.google.protobuf.Value value)
         The schema type of top-level JSON-LD object, e.g. ItemList.
         
        .google.protobuf.Value type = 2;
      • setType

        public SearchResponse.Builder setType​(com.google.protobuf.Value.Builder builderForValue)
         The schema type of top-level JSON-LD object, e.g. ItemList.
         
        .google.protobuf.Value type = 2;
      • mergeType

        public SearchResponse.Builder mergeType​(com.google.protobuf.Value value)
         The schema type of top-level JSON-LD object, e.g. ItemList.
         
        .google.protobuf.Value type = 2;
      • clearType

        public SearchResponse.Builder clearType()
         The schema type of top-level JSON-LD object, e.g. ItemList.
         
        .google.protobuf.Value type = 2;
      • getTypeBuilder

        public com.google.protobuf.Value.Builder getTypeBuilder()
         The schema type of top-level JSON-LD object, e.g. ItemList.
         
        .google.protobuf.Value type = 2;
      • getTypeOrBuilder

        public com.google.protobuf.ValueOrBuilder getTypeOrBuilder()
         The schema type of top-level JSON-LD object, e.g. ItemList.
         
        .google.protobuf.Value type = 2;
        Specified by:
        getTypeOrBuilder in interface SearchResponseOrBuilder
      • hasItemListElement

        public boolean hasItemListElement()
         The item list of search results.
         
        .google.protobuf.ListValue item_list_element = 3;
        Specified by:
        hasItemListElement in interface SearchResponseOrBuilder
        Returns:
        Whether the itemListElement field is set.
      • getItemListElement

        public com.google.protobuf.ListValue getItemListElement()
         The item list of search results.
         
        .google.protobuf.ListValue item_list_element = 3;
        Specified by:
        getItemListElement in interface SearchResponseOrBuilder
        Returns:
        The itemListElement.
      • setItemListElement

        public SearchResponse.Builder setItemListElement​(com.google.protobuf.ListValue value)
         The item list of search results.
         
        .google.protobuf.ListValue item_list_element = 3;
      • setItemListElement

        public SearchResponse.Builder setItemListElement​(com.google.protobuf.ListValue.Builder builderForValue)
         The item list of search results.
         
        .google.protobuf.ListValue item_list_element = 3;
      • mergeItemListElement

        public SearchResponse.Builder mergeItemListElement​(com.google.protobuf.ListValue value)
         The item list of search results.
         
        .google.protobuf.ListValue item_list_element = 3;
      • clearItemListElement

        public SearchResponse.Builder clearItemListElement()
         The item list of search results.
         
        .google.protobuf.ListValue item_list_element = 3;
      • getItemListElementBuilder

        public com.google.protobuf.ListValue.Builder getItemListElementBuilder()
         The item list of search results.
         
        .google.protobuf.ListValue item_list_element = 3;
      • getItemListElementOrBuilder

        public com.google.protobuf.ListValueOrBuilder getItemListElementOrBuilder()
         The item list of search results.
         
        .google.protobuf.ListValue item_list_element = 3;
        Specified by:
        getItemListElementOrBuilder in interface SearchResponseOrBuilder
      • setUnknownFields

        public final SearchResponse.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<SearchResponse.Builder>
      • mergeUnknownFields

        public final SearchResponse.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<SearchResponse.Builder>