1.0.0-beta25 (latest) 1.0.0-beta24

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

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

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

## Inheritance

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

## Implements

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

### GetSampleQueryRequest()

    public GetSampleQueryRequest()

### GetSampleQueryRequest(GetSampleQueryRequest)

    public GetSampleQueryRequest(GetSampleQueryRequest other)

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

## Properties

### Name

    public string Name { get; set; }

Required. Full resource name of
\[SampleQuery\]\[google.cloud.discoveryengine.v1beta.SampleQuery\], such as
`projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.

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

If the requested
\[SampleQuery\]\[google.cloud.discoveryengine.v1beta.SampleQuery\] does not
exist, a NOT_FOUND error is returned.

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

### SampleQueryName

    public SampleQueryName SampleQueryName { get; set; }

[SampleQueryName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQueryName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GetSampleQueryRequest#Google_Cloud_DiscoveryEngine_V1Beta_GetSampleQueryRequest_Name) resource name property.

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