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.discoveryengine.v1beta.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.discoveryengine.v1beta.CollectUserEventRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CollectUserEventRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CollectUserEventRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CollectUserEventRequest.Builder>
    • getDefaultInstanceForType

      public CollectUserEventRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CollectUserEventRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CollectUserEventRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CollectUserEventRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CollectUserEventRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CollectUserEventRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent DataStore resource name, such as
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CollectUserEventRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent DataStore resource name, such as
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CollectUserEventRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CollectUserEventRequest.Builder setParent(String value)
       Required. The parent DataStore resource name, such as
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CollectUserEventRequest.Builder clearParent()
       Required. The parent DataStore resource name, such as
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CollectUserEventRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent DataStore resource name, such as
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getUserEvent

      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];
      Specified by:
      getUserEvent in interface CollectUserEventRequestOrBuilder
      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:
      getUserEventBytes in interface CollectUserEventRequestOrBuilder
      Returns:
      The bytes for userEvent.
    • setUserEvent

      public 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];
      Parameters:
      value - The userEvent to set.
      Returns:
      This builder for chaining.
    • clearUserEvent

      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];
      Returns:
      This builder for chaining.
    • setUserEventBytes

      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];
      Parameters:
      value - The bytes for userEvent to set.
      Returns:
      This builder for chaining.
    • hasUri

      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;
      Specified by:
      hasUri in interface CollectUserEventRequestOrBuilder
      Returns:
      Whether the uri field is set.
    • getUri

      public 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;
      Specified by:
      getUri in interface CollectUserEventRequestOrBuilder
      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 third-party
       requests.
       
      optional string uri = 3;
      Specified by:
      getUriBytes in interface CollectUserEventRequestOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public 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;
      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 third-party
       requests.
       
      optional string uri = 3;
      Returns:
      This builder for chaining.
    • setUriBytes

      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;
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • hasEts

      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;
      Specified by:
      hasEts in interface CollectUserEventRequestOrBuilder
      Returns:
      Whether the ets field is set.
    • 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.
       
      optional int64 ets = 4;
      Specified by:
      getEts in interface CollectUserEventRequestOrBuilder
      Returns:
      The ets.
    • setEts

      public 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;
      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.
       
      optional int64 ets = 4;
      Returns:
      This builder for chaining.