# Enterprise Knowledge Graph v1 API - Class SearchPublicKgRequest (1.0.0-beta05)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.0.0-beta05 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EnterpriseKnowledgeGraph.V1/latest/Google.Cloud.EnterpriseKnowledgeGraph.V1.SearchPublicKgRequest)
- [1.0.0-beta04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EnterpriseKnowledgeGraph.V1/1.0.0-beta04/Google.Cloud.EnterpriseKnowledgeGraph.V1.SearchPublicKgRequest)

    public sealed class SearchPublicKgRequest : IMessage<SearchPublicKgRequest>, IEquatable<SearchPublicKgRequest>, IDeepCloneable<SearchPublicKgRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Enterprise Knowledge Graph v1 API class SearchPublicKgRequest.

Request message for
\[EnterpriseKnowledgeGraphService.Search\]\[google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search\].

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> SearchPublicKgRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SearchPublicKgRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EnterpriseKnowledgeGraph.V1/latest/Google.Cloud.EnterpriseKnowledgeGraph.V1.SearchPublicKgRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SearchPublicKgRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EnterpriseKnowledgeGraph.V1/latest/Google.Cloud.EnterpriseKnowledgeGraph.V1.SearchPublicKgRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SearchPublicKgRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EnterpriseKnowledgeGraph.V1/latest/Google.Cloud.EnterpriseKnowledgeGraph.V1.SearchPublicKgRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.EnterpriseKnowledgeGraph.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EnterpriseKnowledgeGraph.V1/latest/Google.Cloud.EnterpriseKnowledgeGraph.V1)

## Assembly

Google.Cloud.EnterpriseKnowledgeGraph.V1.dll

## Constructors

### SearchPublicKgRequest()

    public SearchPublicKgRequest()

### SearchPublicKgRequest(SearchPublicKgRequest)

    public SearchPublicKgRequest(SearchPublicKgRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EnterpriseKnowledgeGraph.V1/latest/Google.Cloud.EnterpriseKnowledgeGraph.V1.SearchPublicKgRequest` |

## Properties

### Languages

    public RepeatedField<string> Languages { get; }

The list of language codes (defined in ISO 693) to run the query with,
e.g. 'en'.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Limit

    public int? Limit { get; set; }

Limits the number of entities to be returned.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### Parent

    public string Parent { get; set; }

Required. The name of the Entity's parent resource.
Format:
`projects/{project}/locations/{location}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EnterpriseKnowledgeGraph.V1/latest/Google.Cloud.EnterpriseKnowledgeGraph.V1.SearchPublicKgRequest#Google_Cloud_EnterpriseKnowledgeGraph_V1_SearchPublicKgRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` |   |

### Query

    public string Query { get; set; }

Required. The literal query string for search.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Types_

    public RepeatedField<string> Types_ { get; }

Restricts returned entities with these types, e.g. Person
(as defined in <http://schema.org/Person>). If multiple types are specified,
returned entities will contain one or more of these types.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |