Class ListCollectionFieldsResponse

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.ListCollectionFieldsResponse
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class ListCollectionFieldsResponse
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The list of fetched fields.

The fields are returned using a fully qualified name format, however, the format differs slightly from that used by the query operations.

* Fields which contain nested JSON objects are assigned a type of "nested".

* Fields which belong to a nested object are prefixed with `.properties` (for example, `warnings.properties.severity` means that the `warnings` object has a property called `severity`).

* Fields returned from the News collection are prefixed with `v{N}-fullnews-t3-{YEAR}.mappings` (for example, `v5-fullnews-t3-2016.mappings.text.properties.author`).

  • Constructor Details

    • ListCollectionFieldsResponse

      public ListCollectionFieldsResponse()
  • Method Details

    • getFields

      public List<Field> getFields()
      Gets the fields.

      An array containing information about each field in the collections.

      Returns:
      the fields