# Service Management V1 API - Class Google::Cloud::ServiceManagement::V1::Diagnostic (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.2 0.11.0 0.10.2 0.9.0 0.8.0 0.7.0 0.6.1 0.5.0 0.4.1 0.3.10 Reference documentation and code samples for the Service Management V1 API class Google::Cloud::ServiceManagement::V1::Diagnostic.

Represents a diagnostic message (error or warning)

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #kind

    def kind() -> ::Google::Cloud::ServiceManagement::V1::Diagnostic::Kind

**Returns**

- ([::Google::Cloud::ServiceManagement::V1::Diagnostic::Kind](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Cloud-ServiceManagement-V1-Diagnostic-Kind)) --- The kind of diagnostic information provided.

### #kind=

    def kind=(value) -> ::Google::Cloud::ServiceManagement::V1::Diagnostic::Kind

**Parameter**

- **value** ([::Google::Cloud::ServiceManagement::V1::Diagnostic::Kind](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Cloud-ServiceManagement-V1-Diagnostic-Kind)) --- The kind of diagnostic information provided.
**Returns**

- ([::Google::Cloud::ServiceManagement::V1::Diagnostic::Kind](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Cloud-ServiceManagement-V1-Diagnostic-Kind)) --- The kind of diagnostic information provided.

### #location

    def location() -> ::String

**Returns**

- (::String) --- File name and line number of the error or warning.

### #location=

    def location=(value) -> ::String

**Parameter**

- **value** (::String) --- File name and line number of the error or warning.
**Returns**

- (::String) --- File name and line number of the error or warning.

### #message

    def message() -> ::String

**Returns**

- (::String) --- Message describing the error or warning.

### #message=

    def message=(value) -> ::String

**Parameter**

- **value** (::String) --- Message describing the error or warning.
**Returns**

- (::String) --- Message describing the error or warning.