Class ProjectsResource.LocationsResource.DataStoresResource.UserEventsResource.CollectRequest
Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.
Inheritance
Inherited Members
Namespace: Google.Apis.DiscoveryEngine.v1beta
Assembly: Google.Apis.DiscoveryEngine.v1beta.dll
Syntax
public class ProjectsResource.LocationsResource.DataStoresResource.UserEventsResource.CollectRequest : DiscoveryEngineBaseServiceRequest<GoogleApiHttpBody>, IClientServiceRequest<GoogleApiHttpBody>, IClientServiceRequest
Constructors
CollectRequest(IClientService, string)
Constructs a new Collect request.
Declaration
public CollectRequest(IClientService service, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | parent |
Properties
Ets
The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
Declaration
[RequestParameter("ets", RequestParameterType.Query)]
public virtual long? Ets { get; set; }
Property Value
Type | Description |
---|---|
long? |
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 DataStore resource name, such as
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
.
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
Uri
The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for third-party requests.
Declaration
[RequestParameter("uri", RequestParameterType.Query)]
public virtual string Uri { get; set; }
Property Value
Type | Description |
---|---|
string |
UserEvent
Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
Declaration
[RequestParameter("userEvent", RequestParameterType.Query)]
public virtual string UserEvent { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes Collect parameter list.
Declaration
protected override void InitParameters()