# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::CreateEngineRequest (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.2 2.5.0 2.4.0 2.3.1 2.2.0 2.1.1 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::CreateEngineRequest.

Request for
[EngineService.CreateEngine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client#Google__Cloud__DiscoveryEngine__V1__EngineService__Client_create_engine_instance_ "Google::Cloud::DiscoveryEngine::V1::EngineService::Client#create_engine (method)")
method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #engine

    def engine() -> ::Google::Cloud::DiscoveryEngine::V1::Engine

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::Engine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine)) --- Required. The [Engine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine "Google::Cloud::DiscoveryEngine::V1::Engine (class)") to create.

### #engine=

    def engine=(value) -> ::Google::Cloud::DiscoveryEngine::V1::Engine

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1::Engine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine)) --- Required. The [Engine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine "Google::Cloud::DiscoveryEngine::V1::Engine (class)") to create.
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::Engine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine)) --- Required. The [Engine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine "Google::Cloud::DiscoveryEngine::V1::Engine (class)") to create.

### #engine_id

    def engine_id() -> ::String

**Returns**

- (::String) --- Required. The ID to use for the [Engine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine "Google::Cloud::DiscoveryEngine::V1::Engine (class)"), which will become the final component of the [Engine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine "Google::Cloud::DiscoveryEngine::V1::Engine (class)")'s resource name.


  This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
  standard with a length limit of 63 characters. Otherwise, an
  INVALID_ARGUMENT error is returned.

### #engine_id=

    def engine_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The ID to use for the [Engine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine "Google::Cloud::DiscoveryEngine::V1::Engine (class)"), which will become the final component of the [Engine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine "Google::Cloud::DiscoveryEngine::V1::Engine (class)")'s resource name.


  This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
  standard with a length limit of 63 characters. Otherwise, an
  INVALID_ARGUMENT error is returned.
**Returns**

- (::String) --- Required. The ID to use for the [Engine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine "Google::Cloud::DiscoveryEngine::V1::Engine (class)"), which will become the final component of the [Engine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine "Google::Cloud::DiscoveryEngine::V1::Engine (class)")'s resource name.


  This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
  standard with a length limit of 63 characters. Otherwise, an
  INVALID_ARGUMENT error is returned.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}`.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}`.
**Returns**

- (::String) --- Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}`.