# Datastream V1 API - Class Google::Cloud::Datastream::V1::ValidationMessage (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.0 0.13.0 0.12.0 0.11.0 0.10.1 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Datastream V1 API class Google::Cloud::Datastream::V1::ValidationMessage.

Represent user-facing validation result message.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #code

    def code() -> ::String

**Returns**

- (::String) --- A custom code identifying this specific message.

### #code=

    def code=(value) -> ::String

**Parameter**

- **value** (::String) --- A custom code identifying this specific message.
**Returns**

- (::String) --- A custom code identifying this specific message.

### #level

    def level() -> ::Google::Cloud::Datastream::V1::ValidationMessage::Level

**Returns**

- ([::Google::Cloud::Datastream::V1::ValidationMessage::Level](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-ValidationMessage-Level)) --- Message severity level (warning or error).

### #level=

    def level=(value) -> ::Google::Cloud::Datastream::V1::ValidationMessage::Level

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::ValidationMessage::Level](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-ValidationMessage-Level)) --- Message severity level (warning or error).
**Returns**

- ([::Google::Cloud::Datastream::V1::ValidationMessage::Level](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-ValidationMessage-Level)) --- Message severity level (warning or error).

### #message

    def message() -> ::String

**Returns**

- (::String) --- The result of the validation.

### #message=

    def message=(value) -> ::String

**Parameter**

- **value** (::String) --- The result of the validation.
**Returns**

- (::String) --- The result of the validation.

### #metadata

    def metadata() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Additional metadata related to the result.

### #metadata=

    def metadata=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Additional metadata related to the result.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Additional metadata related to the result.