# Natural Language V1beta2 API - Class Google::Cloud::Language::V1beta2::ClassifyTextResponse (v0.18.0)

0.18.0 (latest) 0.17.0 0.16.0 0.15.1 0.14.0 0.13.1 0.12.0 0.11.1 0.10.2 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the Natural Language V1beta2 API class Google::Cloud::Language::V1beta2::ClassifyTextResponse.

The document classification response message.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #categories

    def categories() -> ::Array<::Google::Cloud::Language::V1beta2::ClassificationCategory>

**Returns**

- (::Array\<[::Google::Cloud::Language::V1beta2::ClassificationCategory](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-language-v1beta2/latest/Google-Cloud-Language-V1beta2-ClassificationCategory)\>) --- Categories representing the input document.

### #categories=

    def categories=(value) -> ::Array<::Google::Cloud::Language::V1beta2::ClassificationCategory>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Language::V1beta2::ClassificationCategory](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-language-v1beta2/latest/Google-Cloud-Language-V1beta2-ClassificationCategory)\>) --- Categories representing the input document.
**Returns**

- (::Array\<[::Google::Cloud::Language::V1beta2::ClassificationCategory](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-language-v1beta2/latest/Google-Cloud-Language-V1beta2-ClassificationCategory)\>) --- Categories representing the input document.