Package com.google.cloud.retail.v2alpha
Class CollectUserEventRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CollectUserEventRequest.Builder>
com.google.cloud.retail.v2alpha.CollectUserEventRequest.Builder
- All Implemented Interfaces:
CollectUserEventRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CollectUserEventRequest
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.retail.v2alpha.CollectUserEventRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()clearEts()The event timestamp in milliseconds.Required.The prebuilt rule name that can convert a specific type of raw_json.An arbitrary serialized JSON string that contains necessary information that can comprise a user event.clearUri()The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetEts()The event timestamp in milliseconds.Required.com.google.protobuf.ByteStringRequired.The prebuilt rule name that can convert a specific type of raw_json.com.google.protobuf.ByteStringThe prebuilt rule name that can convert a specific type of raw_json.An arbitrary serialized JSON string that contains necessary information that can comprise a user event.com.google.protobuf.ByteStringAn arbitrary serialized JSON string that contains necessary information that can comprise a user event.getUri()The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters.com.google.protobuf.ByteStringThe URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters.Required.com.google.protobuf.ByteStringRequired.booleanThe prebuilt rule name that can convert a specific type of raw_json.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CollectUserEventRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEts(long value) The event timestamp in milliseconds.Required.setParentBytes(com.google.protobuf.ByteString value) Required.setPrebuiltRule(String value) The prebuilt rule name that can convert a specific type of raw_json.setPrebuiltRuleBytes(com.google.protobuf.ByteString value) The prebuilt rule name that can convert a specific type of raw_json.setRawJson(String value) An arbitrary serialized JSON string that contains necessary information that can comprise a user event.setRawJsonBytes(com.google.protobuf.ByteString value) An arbitrary serialized JSON string that contains necessary information that can comprise a user event.The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters.setUriBytes(com.google.protobuf.ByteString value) The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters.setUserEvent(String value) Required.setUserEventBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CollectUserEventRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CollectUserEventRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CollectUserEventRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CollectUserEventRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CollectUserEventRequest.Builder>
-
mergeFrom
public CollectUserEventRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CollectUserEventRequest.Builder>- Throws:
IOException
-
getConversionRuleCase
- Specified by:
getConversionRuleCasein interfaceCollectUserEventRequestOrBuilder
-
clearConversionRule
-
hasPrebuiltRule
public boolean hasPrebuiltRule()The prebuilt rule name that can convert a specific type of raw_json. For example: "ga4_bq" rule for the GA4 user event schema.
string prebuilt_rule = 6;- Specified by:
hasPrebuiltRulein interfaceCollectUserEventRequestOrBuilder- Returns:
- Whether the prebuiltRule field is set.
-
getPrebuiltRule
The prebuilt rule name that can convert a specific type of raw_json. For example: "ga4_bq" rule for the GA4 user event schema.
string prebuilt_rule = 6;- Specified by:
getPrebuiltRulein interfaceCollectUserEventRequestOrBuilder- Returns:
- The prebuiltRule.
-
getPrebuiltRuleBytes
public com.google.protobuf.ByteString getPrebuiltRuleBytes()The prebuilt rule name that can convert a specific type of raw_json. For example: "ga4_bq" rule for the GA4 user event schema.
string prebuilt_rule = 6;- Specified by:
getPrebuiltRuleBytesin interfaceCollectUserEventRequestOrBuilder- Returns:
- The bytes for prebuiltRule.
-
setPrebuiltRule
The prebuilt rule name that can convert a specific type of raw_json. For example: "ga4_bq" rule for the GA4 user event schema.
string prebuilt_rule = 6;- Parameters:
value- The prebuiltRule to set.- Returns:
- This builder for chaining.
-
clearPrebuiltRule
The prebuilt rule name that can convert a specific type of raw_json. For example: "ga4_bq" rule for the GA4 user event schema.
string prebuilt_rule = 6;- Returns:
- This builder for chaining.
-
setPrebuiltRuleBytes
The prebuilt rule name that can convert a specific type of raw_json. For example: "ga4_bq" rule for the GA4 user event schema.
string prebuilt_rule = 6;- Parameters:
value- The bytes for prebuiltRule to set.- Returns:
- This builder for chaining.
-
getParent
Required. The parent catalog name, such as `projects/1234/locations/global/catalogs/default_catalog`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParentin interfaceCollectUserEventRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. The parent catalog name, such as `projects/1234/locations/global/catalogs/default_catalog`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParentBytesin interfaceCollectUserEventRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. The parent catalog name, such as `projects/1234/locations/global/catalogs/default_catalog`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Required. The parent catalog name, such as `projects/1234/locations/global/catalogs/default_catalog`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setParentBytes
Required. The parent catalog name, such as `projects/1234/locations/global/catalogs/default_catalog`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getUserEvent
Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
string user_event = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getUserEventin interfaceCollectUserEventRequestOrBuilder- Returns:
- The userEvent.
-
getUserEventBytes
public 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];- Specified by:
getUserEventBytesin interfaceCollectUserEventRequestOrBuilder- Returns:
- The bytes for userEvent.
-
setUserEvent
Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
string user_event = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The userEvent to set.- Returns:
- This builder for chaining.
-
clearUserEvent
Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
string user_event = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setUserEventBytes
Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
string user_event = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for userEvent to set.- Returns:
- This builder for chaining.
-
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 3rd party requests.
string uri = 3;- Specified by:
getUriin interfaceCollectUserEventRequestOrBuilder- Returns:
- The uri.
-
getUriBytes
public 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 3rd party requests.
string uri = 3;- Specified by:
getUriBytesin interfaceCollectUserEventRequestOrBuilder- Returns:
- The bytes for uri.
-
setUri
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 3rd party requests.
string uri = 3;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
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 3rd party requests.
string uri = 3;- Returns:
- This builder for chaining.
-
setUriBytes
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 3rd party requests.
string uri = 3;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getEts
public 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.
int64 ets = 4;- Specified by:
getEtsin interfaceCollectUserEventRequestOrBuilder- Returns:
- The ets.
-
setEts
The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
int64 ets = 4;- Parameters:
value- The ets to set.- Returns:
- This builder for chaining.
-
clearEts
The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
int64 ets = 4;- Returns:
- This builder for chaining.
-
getRawJson
An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.
string raw_json = 5;- Specified by:
getRawJsonin interfaceCollectUserEventRequestOrBuilder- Returns:
- The rawJson.
-
getRawJsonBytes
public com.google.protobuf.ByteString getRawJsonBytes()An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.
string raw_json = 5;- Specified by:
getRawJsonBytesin interfaceCollectUserEventRequestOrBuilder- Returns:
- The bytes for rawJson.
-
setRawJson
An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.
string raw_json = 5;- Parameters:
value- The rawJson to set.- Returns:
- This builder for chaining.
-
clearRawJson
An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.
string raw_json = 5;- Returns:
- This builder for chaining.
-
setRawJsonBytes
An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.
string raw_json = 5;- Parameters:
value- The bytes for rawJson to set.- Returns:
- This builder for chaining.
-