public static final class CollectUserEventRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CollectUserEventRequest.Builder> implements CollectUserEventRequestOrBuilder
Request message for CollectUserEvent method.Protobuf type
google.cloud.discoveryengine.v1.CollectUserEventRequest| Modifier and Type | Method and Description |
|---|---|
CollectUserEventRequest |
build() |
CollectUserEventRequest |
buildPartial() |
CollectUserEventRequest.Builder |
clear() |
CollectUserEventRequest.Builder |
clearEts()
The event timestamp in milliseconds.
|
CollectUserEventRequest.Builder |
clearParent()
Required.
|
CollectUserEventRequest.Builder |
clearUri()
The URL including cgi-parameters but excluding the hash fragment with a
length limit of 5,000 characters.
|
CollectUserEventRequest.Builder |
clearUserEvent()
Required.
|
CollectUserEventRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getEts()
The event timestamp in milliseconds.
|
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
String |
getUri()
The URL including cgi-parameters but excluding the hash fragment with a
length limit of 5,000 characters.
|
com.google.protobuf.ByteString |
getUriBytes()
The URL including cgi-parameters but excluding the hash fragment with a
length limit of 5,000 characters.
|
String |
getUserEvent()
Required.
|
com.google.protobuf.ByteString |
getUserEventBytes()
Required.
|
boolean |
hasEts()
The event timestamp in milliseconds.
|
boolean |
hasUri()
The URL including cgi-parameters but excluding the hash fragment with a
length limit of 5,000 characters.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CollectUserEventRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CollectUserEventRequest.Builder |
mergeFrom(CollectUserEventRequest other) |
CollectUserEventRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
CollectUserEventRequest.Builder |
setEts(long value)
The event timestamp in milliseconds.
|
CollectUserEventRequest.Builder |
setParent(String value)
Required.
|
CollectUserEventRequest.Builder |
setParentBytes(com.google.protobuf.ByteString value)
Required.
|
CollectUserEventRequest.Builder |
setUri(String value)
The URL including cgi-parameters but excluding the hash fragment with a
length limit of 5,000 characters.
|
CollectUserEventRequest.Builder |
setUriBytes(com.google.protobuf.ByteString value)
The URL including cgi-parameters but excluding the hash fragment with a
length limit of 5,000 characters.
|
CollectUserEventRequest.Builder |
setUserEvent(String value)
Required.
|
CollectUserEventRequest.Builder |
setUserEventBytes(com.google.protobuf.ByteString value)
Required.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CollectUserEventRequest.Builder>public CollectUserEventRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<CollectUserEventRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CollectUserEventRequest.Builder>public CollectUserEventRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CollectUserEventRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CollectUserEventRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CollectUserEventRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CollectUserEventRequest.Builder>public CollectUserEventRequest.Builder mergeFrom(CollectUserEventRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<CollectUserEventRequest.Builder>public CollectUserEventRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CollectUserEventRequest.Builder>IOExceptionpublic String getParent()
Required. The parent resource name.
If the collect user event action is applied in
[DataStore][google.cloud.discoveryengine.v1.DataStore] level, the format
is:
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
If the collect user event action is applied in
[Location][google.cloud.location.Location] level, for example, the event
with [Document][google.cloud.discoveryengine.v1.Document] across multiple
[DataStore][google.cloud.discoveryengine.v1.DataStore], the format is:
`projects/{project}/locations/{location}`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParent in interface CollectUserEventRequestOrBuilderpublic com.google.protobuf.ByteString getParentBytes()
Required. The parent resource name.
If the collect user event action is applied in
[DataStore][google.cloud.discoveryengine.v1.DataStore] level, the format
is:
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
If the collect user event action is applied in
[Location][google.cloud.location.Location] level, for example, the event
with [Document][google.cloud.discoveryengine.v1.Document] across multiple
[DataStore][google.cloud.discoveryengine.v1.DataStore], the format is:
`projects/{project}/locations/{location}`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParentBytes in interface CollectUserEventRequestOrBuilderpublic CollectUserEventRequest.Builder setParent(String value)
Required. The parent resource name.
If the collect user event action is applied in
[DataStore][google.cloud.discoveryengine.v1.DataStore] level, the format
is:
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
If the collect user event action is applied in
[Location][google.cloud.location.Location] level, for example, the event
with [Document][google.cloud.discoveryengine.v1.Document] across multiple
[DataStore][google.cloud.discoveryengine.v1.DataStore], the format is:
`projects/{project}/locations/{location}`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The parent to set.public CollectUserEventRequest.Builder clearParent()
Required. The parent resource name.
If the collect user event action is applied in
[DataStore][google.cloud.discoveryengine.v1.DataStore] level, the format
is:
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
If the collect user event action is applied in
[Location][google.cloud.location.Location] level, for example, the event
with [Document][google.cloud.discoveryengine.v1.Document] across multiple
[DataStore][google.cloud.discoveryengine.v1.DataStore], the format is:
`projects/{project}/locations/{location}`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public CollectUserEventRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. The parent resource name.
If the collect user event action is applied in
[DataStore][google.cloud.discoveryengine.v1.DataStore] level, the format
is:
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
If the collect user event action is applied in
[Location][google.cloud.location.Location] level, for example, the event
with [Document][google.cloud.discoveryengine.v1.Document] across multiple
[DataStore][google.cloud.discoveryengine.v1.DataStore], the format is:
`projects/{project}/locations/{location}`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for parent to set.public String getUserEvent()
Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
string user_event = 2 [(.google.api.field_behavior) = REQUIRED];getUserEvent in interface CollectUserEventRequestOrBuilderpublic com.google.protobuf.ByteString getUserEventBytes()
Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
string user_event = 2 [(.google.api.field_behavior) = REQUIRED];getUserEventBytes in interface CollectUserEventRequestOrBuilderpublic CollectUserEventRequest.Builder setUserEvent(String value)
Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
string user_event = 2 [(.google.api.field_behavior) = REQUIRED];value - The userEvent to set.public CollectUserEventRequest.Builder clearUserEvent()
Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
string user_event = 2 [(.google.api.field_behavior) = REQUIRED];public CollectUserEventRequest.Builder setUserEventBytes(com.google.protobuf.ByteString value)
Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
string user_event = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for userEvent to set.public boolean hasUri()
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.
optional string uri = 3;hasUri in interface CollectUserEventRequestOrBuilderpublic String getUri()
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.
optional string uri = 3;getUri in interface CollectUserEventRequestOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
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.
optional string uri = 3;getUriBytes in interface CollectUserEventRequestOrBuilderpublic CollectUserEventRequest.Builder setUri(String value)
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.
optional string uri = 3;value - The uri to set.public CollectUserEventRequest.Builder clearUri()
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.
optional string uri = 3;public CollectUserEventRequest.Builder setUriBytes(com.google.protobuf.ByteString value)
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.
optional string uri = 3;value - The bytes for uri to set.public boolean hasEts()
The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
optional int64 ets = 4;hasEts in interface CollectUserEventRequestOrBuilderpublic long getEts()
The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
optional int64 ets = 4;getEts in interface CollectUserEventRequestOrBuilderpublic CollectUserEventRequest.Builder setEts(long value)
The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
optional int64 ets = 4;value - The ets to set.public CollectUserEventRequest.Builder clearEts()
The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
optional int64 ets = 4;Copyright © 2026 Google LLC. All rights reserved.