Class ProjectsResource.LocationsResource.DataStoresResource.UserEventsResource.WriteRequest
Writes a single user event.
Inheritance
ProjectsResource.LocationsResource.DataStoresResource.UserEventsResource.WriteRequest
Inherited Members
Namespace: Google.Apis.DiscoveryEngine.v1alpha
Assembly: Google.Apis.DiscoveryEngine.v1alpha.dll
Syntax
public class ProjectsResource.LocationsResource.DataStoresResource.UserEventsResource.WriteRequest : DiscoveryEngineBaseServiceRequest<GoogleCloudDiscoveryengineV1alphaUserEvent>, IClientServiceRequest<GoogleCloudDiscoveryengineV1alphaUserEvent>, IClientServiceRequest
Constructors
WriteRequest(IClientService, GoogleCloudDiscoveryengineV1alphaUserEvent, string)
Constructs a new Write request.
Declaration
public WriteRequest(IClientService service, GoogleCloudDiscoveryengineV1alphaUserEvent body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudDiscoveryengineV1alphaUserEvent | body | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Parent
Required. The parent resource name. If the write user event action is applied in DataStore
level, the format is:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
.
If the write user event action is applied in Location level, for example, the event with
Document across multiple DataStore, the format is:
projects/{project}/locations/{location}
.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
WriteAsync
If set to true, the user event is written asynchronously after validation, and the API responds without waiting for the write.
Declaration
[RequestParameter("writeAsync", RequestParameterType.Query)]
public virtual bool? WriteAsync { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Write parameter list.
Declaration
protected override void InitParameters()