# Migrate for Compute Engine V1 API - Class Google::Rpc::PreconditionFailure::Violation (v2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Migrate for Compute Engine V1 API class Google::Rpc::PreconditionFailure::Violation.

A message type used to describe a single precondition failure.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #description

    def description() -> ::String

**Returns**

- (::String) --- A description of how the precondition failed. Developers can use this description to understand how to fix the failure.

  For example: "Terms of service not accepted".

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- A description of how the precondition failed. Developers can use this description to understand how to fix the failure.


  For example: "Terms of service not accepted".
**Returns**

- (::String) --- A description of how the precondition failed. Developers can use this description to understand how to fix the failure.

  For example: "Terms of service not accepted".

### #subject

    def subject() -> ::String

**Returns**

- (::String) --- The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced.

### #subject=

    def subject=(value) -> ::String

**Parameter**

- **value** (::String) --- The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced.
**Returns**

- (::String) --- The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced.

### #type

    def type() -> ::String

**Returns**

- (::String) --- The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation".

### #type=

    def type=(value) -> ::String

**Parameter**

- **value** (::String) --- The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation".
**Returns**

- (::String) --- The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation".