1.0.0-beta25 (latest) 1.0.0-beta24

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

Reference documentation and code samples for the Discovery Engine v1beta API class CreateSampleQueryRequest.

Request message for
\[SampleQueryService.CreateSampleQuery\]\[google.cloud.discoveryengine.v1beta.SampleQueryService.CreateSampleQuery\]
method.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateSampleQueryRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CreateSampleQueryRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateSampleQueryRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CreateSampleQueryRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateSampleQueryRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CreateSampleQueryRequest), [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.DiscoveryEngine.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

## Constructors

### CreateSampleQueryRequest()

    public CreateSampleQueryRequest()

### CreateSampleQueryRequest(CreateSampleQueryRequest)

    public CreateSampleQueryRequest(CreateSampleQueryRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CreateSampleQueryRequest` |

## Properties

### Parent

    public string Parent { get; set; }

Required. The parent resource name, such as
`projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.

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

### ParentAsSampleQuerySetName

    public SampleQuerySetName ParentAsSampleQuerySetName { get; set; }

[SampleQuerySetName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuerySetName)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CreateSampleQueryRequest#Google_Cloud_DiscoveryEngine_V1Beta_CreateSampleQueryRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuerySetName` |   |

### SampleQuery

    public SampleQuery SampleQuery { get; set; }

Required. The
\[SampleQuery\]\[google.cloud.discoveryengine.v1beta.SampleQuery\] to create.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery` |   |

### SampleQueryId

    public string SampleQueryId { get; set; }

Required. The ID to use for the
\[SampleQuery\]\[google.cloud.discoveryengine.v1beta.SampleQuery\], which will
become the final component of the
\[SampleQuery.name\]\[google.cloud.discoveryengine.v1beta.SampleQuery.name\].

If the caller does not have permission to create the
\[SampleQuery\]\[google.cloud.discoveryengine.v1beta.SampleQuery\], regardless
of whether or not it exists, a `PERMISSION_DENIED` error is returned.

This field must be unique among all
\[SampleQuery\]\[google.cloud.discoveryengine.v1beta.SampleQuery\]s with the
same
\[parent\]\[google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent\].
Otherwise, an `ALREADY_EXISTS` error is returned.

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.

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