// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/talent/v4beta1/event.proto

package com.google.cloud.talent.v4beta1;

/**
 *
 *
 * <pre>
 * An event issued when an end user interacts with the application that
 * implements Cloud Talent Solution. Providing this information improves the
 * quality of search and recommendation for the API clients, enabling the
 * service to perform optimally. The number of events sent must be consistent
 * with other calls, such as job searches, issued to the service by the client.
 * </pre>
 *
 * Protobuf type {@code google.cloud.talent.v4beta1.ClientEvent}
 */
public final class ClientEvent extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ClientEvent)
    ClientEventOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use ClientEvent.newBuilder() to construct.
  private ClientEvent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private ClientEvent() {
    requestId_ = "";
    eventId_ = "";
    eventNotes_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  private ClientEvent(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10:
            {
              java.lang.String s = input.readStringRequireUtf8();

              requestId_ = s;
              break;
            }
          case 18:
            {
              java.lang.String s = input.readStringRequireUtf8();

              eventId_ = s;
              break;
            }
          case 34:
            {
              com.google.protobuf.Timestamp.Builder subBuilder = null;
              if (createTime_ != null) {
                subBuilder = createTime_.toBuilder();
              }
              createTime_ =
                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(createTime_);
                createTime_ = subBuilder.buildPartial();
              }

              break;
            }
          case 42:
            {
              com.google.cloud.talent.v4beta1.JobEvent.Builder subBuilder = null;
              if (eventCase_ == 5) {
                subBuilder = ((com.google.cloud.talent.v4beta1.JobEvent) event_).toBuilder();
              }
              event_ =
                  input.readMessage(
                      com.google.cloud.talent.v4beta1.JobEvent.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.cloud.talent.v4beta1.JobEvent) event_);
                event_ = subBuilder.buildPartial();
              }
              eventCase_ = 5;
              break;
            }
          case 50:
            {
              com.google.cloud.talent.v4beta1.ProfileEvent.Builder subBuilder = null;
              if (eventCase_ == 6) {
                subBuilder = ((com.google.cloud.talent.v4beta1.ProfileEvent) event_).toBuilder();
              }
              event_ =
                  input.readMessage(
                      com.google.cloud.talent.v4beta1.ProfileEvent.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.cloud.talent.v4beta1.ProfileEvent) event_);
                event_ = subBuilder.buildPartial();
              }
              eventCase_ = 6;
              break;
            }
          case 74:
            {
              java.lang.String s = input.readStringRequireUtf8();

              eventNotes_ = s;
              break;
            }
          default:
            {
              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.talent.v4beta1.EventProto
        .internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.talent.v4beta1.EventProto
        .internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.talent.v4beta1.ClientEvent.class,
            com.google.cloud.talent.v4beta1.ClientEvent.Builder.class);
  }

  private int eventCase_ = 0;
  private java.lang.Object event_;

  public enum EventCase implements com.google.protobuf.Internal.EnumLite {
    JOB_EVENT(5),
    PROFILE_EVENT(6),
    EVENT_NOT_SET(0);
    private final int value;

    private EventCase(int value) {
      this.value = value;
    }
    /** @deprecated Use {@link #forNumber(int)} instead. */
    @java.lang.Deprecated
    public static EventCase valueOf(int value) {
      return forNumber(value);
    }

    public static EventCase forNumber(int value) {
      switch (value) {
        case 5:
          return JOB_EVENT;
        case 6:
          return PROFILE_EVENT;
        case 0:
          return EVENT_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public EventCase getEventCase() {
    return EventCase.forNumber(eventCase_);
  }

  public static final int REQUEST_ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object requestId_;
  /**
   *
   *
   * <pre>
   * Required.
   * A unique ID generated in the API responses. It can be found in
   * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
   * </pre>
   *
   * <code>string request_id = 1;</code>
   */
  public java.lang.String getRequestId() {
    java.lang.Object ref = requestId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      requestId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required.
   * A unique ID generated in the API responses. It can be found in
   * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
   * </pre>
   *
   * <code>string request_id = 1;</code>
   */
  public com.google.protobuf.ByteString getRequestIdBytes() {
    java.lang.Object ref = requestId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      requestId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int EVENT_ID_FIELD_NUMBER = 2;
  private volatile java.lang.Object eventId_;
  /**
   *
   *
   * <pre>
   * Required.
   * A unique identifier, generated by the client application.
   * </pre>
   *
   * <code>string event_id = 2;</code>
   */
  public java.lang.String getEventId() {
    java.lang.Object ref = eventId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      eventId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required.
   * A unique identifier, generated by the client application.
   * </pre>
   *
   * <code>string event_id = 2;</code>
   */
  public com.google.protobuf.ByteString getEventIdBytes() {
    java.lang.Object ref = eventId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      eventId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CREATE_TIME_FIELD_NUMBER = 4;
  private com.google.protobuf.Timestamp createTime_;
  /**
   *
   *
   * <pre>
   * Required.
   * The timestamp of the event.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 4;</code>
   */
  public boolean hasCreateTime() {
    return createTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Required.
   * The timestamp of the event.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 4;</code>
   */
  public com.google.protobuf.Timestamp getCreateTime() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }
  /**
   *
   *
   * <pre>
   * Required.
   * The timestamp of the event.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 4;</code>
   */
  public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    return getCreateTime();
  }

  public static final int JOB_EVENT_FIELD_NUMBER = 5;
  /**
   *
   *
   * <pre>
   * An event issued when a job seeker interacts with the application that
   * implements Cloud Talent Solution.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.JobEvent job_event = 5;</code>
   */
  public boolean hasJobEvent() {
    return eventCase_ == 5;
  }
  /**
   *
   *
   * <pre>
   * An event issued when a job seeker interacts with the application that
   * implements Cloud Talent Solution.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.JobEvent job_event = 5;</code>
   */
  public com.google.cloud.talent.v4beta1.JobEvent getJobEvent() {
    if (eventCase_ == 5) {
      return (com.google.cloud.talent.v4beta1.JobEvent) event_;
    }
    return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * An event issued when a job seeker interacts with the application that
   * implements Cloud Talent Solution.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.JobEvent job_event = 5;</code>
   */
  public com.google.cloud.talent.v4beta1.JobEventOrBuilder getJobEventOrBuilder() {
    if (eventCase_ == 5) {
      return (com.google.cloud.talent.v4beta1.JobEvent) event_;
    }
    return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance();
  }

  public static final int PROFILE_EVENT_FIELD_NUMBER = 6;
  /**
   *
   *
   * <pre>
   * An event issued when a profile searcher interacts with the application
   * that implements Cloud Talent Solution.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.ProfileEvent profile_event = 6;</code>
   */
  public boolean hasProfileEvent() {
    return eventCase_ == 6;
  }
  /**
   *
   *
   * <pre>
   * An event issued when a profile searcher interacts with the application
   * that implements Cloud Talent Solution.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.ProfileEvent profile_event = 6;</code>
   */
  public com.google.cloud.talent.v4beta1.ProfileEvent getProfileEvent() {
    if (eventCase_ == 6) {
      return (com.google.cloud.talent.v4beta1.ProfileEvent) event_;
    }
    return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * An event issued when a profile searcher interacts with the application
   * that implements Cloud Talent Solution.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.ProfileEvent profile_event = 6;</code>
   */
  public com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBuilder() {
    if (eventCase_ == 6) {
      return (com.google.cloud.talent.v4beta1.ProfileEvent) event_;
    }
    return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance();
  }

  public static final int EVENT_NOTES_FIELD_NUMBER = 9;
  private volatile java.lang.Object eventNotes_;
  /**
   *
   *
   * <pre>
   * Optional.
   * Notes about the event provided by recruiters or other users, for example,
   * feedback on why a profile was bookmarked.
   * </pre>
   *
   * <code>string event_notes = 9;</code>
   */
  public java.lang.String getEventNotes() {
    java.lang.Object ref = eventNotes_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      eventNotes_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * Notes about the event provided by recruiters or other users, for example,
   * feedback on why a profile was bookmarked.
   * </pre>
   *
   * <code>string event_notes = 9;</code>
   */
  public com.google.protobuf.ByteString getEventNotesBytes() {
    java.lang.Object ref = eventNotes_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      eventNotes_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!getRequestIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_);
    }
    if (!getEventIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventId_);
    }
    if (createTime_ != null) {
      output.writeMessage(4, getCreateTime());
    }
    if (eventCase_ == 5) {
      output.writeMessage(5, (com.google.cloud.talent.v4beta1.JobEvent) event_);
    }
    if (eventCase_ == 6) {
      output.writeMessage(6, (com.google.cloud.talent.v4beta1.ProfileEvent) event_);
    }
    if (!getEventNotesBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, eventNotes_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getRequestIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_);
    }
    if (!getEventIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventId_);
    }
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime());
    }
    if (eventCase_ == 5) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              5, (com.google.cloud.talent.v4beta1.JobEvent) event_);
    }
    if (eventCase_ == 6) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              6, (com.google.cloud.talent.v4beta1.ProfileEvent) event_);
    }
    if (!getEventNotesBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, eventNotes_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.talent.v4beta1.ClientEvent)) {
      return super.equals(obj);
    }
    com.google.cloud.talent.v4beta1.ClientEvent other =
        (com.google.cloud.talent.v4beta1.ClientEvent) obj;

    if (!getRequestId().equals(other.getRequestId())) return false;
    if (!getEventId().equals(other.getEventId())) return false;
    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (!getCreateTime().equals(other.getCreateTime())) return false;
    }
    if (!getEventNotes().equals(other.getEventNotes())) return false;
    if (!getEventCase().equals(other.getEventCase())) return false;
    switch (eventCase_) {
      case 5:
        if (!getJobEvent().equals(other.getJobEvent())) return false;
        break;
      case 6:
        if (!getProfileEvent().equals(other.getProfileEvent())) return false;
        break;
      case 0:
      default:
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
    hash = (53 * hash) + getRequestId().hashCode();
    hash = (37 * hash) + EVENT_ID_FIELD_NUMBER;
    hash = (53 * hash) + getEventId().hashCode();
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime().hashCode();
    }
    hash = (37 * hash) + EVENT_NOTES_FIELD_NUMBER;
    hash = (53 * hash) + getEventNotes().hashCode();
    switch (eventCase_) {
      case 5:
        hash = (37 * hash) + JOB_EVENT_FIELD_NUMBER;
        hash = (53 * hash) + getJobEvent().hashCode();
        break;
      case 6:
        hash = (37 * hash) + PROFILE_EVENT_FIELD_NUMBER;
        hash = (53 * hash) + getProfileEvent().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.ClientEvent parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.talent.v4beta1.ClientEvent parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.cloud.talent.v4beta1.ClientEvent prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * An event issued when an end user interacts with the application that
   * implements Cloud Talent Solution. Providing this information improves the
   * quality of search and recommendation for the API clients, enabling the
   * service to perform optimally. The number of events sent must be consistent
   * with other calls, such as job searches, issued to the service by the client.
   * </pre>
   *
   * Protobuf type {@code google.cloud.talent.v4beta1.ClientEvent}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ClientEvent)
      com.google.cloud.talent.v4beta1.ClientEventOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.talent.v4beta1.EventProto
          .internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.talent.v4beta1.EventProto
          .internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.talent.v4beta1.ClientEvent.class,
              com.google.cloud.talent.v4beta1.ClientEvent.Builder.class);
    }

    // Construct using com.google.cloud.talent.v4beta1.ClientEvent.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }

    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      requestId_ = "";

      eventId_ = "";

      if (createTimeBuilder_ == null) {
        createTime_ = null;
      } else {
        createTime_ = null;
        createTimeBuilder_ = null;
      }
      eventNotes_ = "";

      eventCase_ = 0;
      event_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.talent.v4beta1.EventProto
          .internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.talent.v4beta1.ClientEvent getDefaultInstanceForType() {
      return com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.talent.v4beta1.ClientEvent build() {
      com.google.cloud.talent.v4beta1.ClientEvent result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.talent.v4beta1.ClientEvent buildPartial() {
      com.google.cloud.talent.v4beta1.ClientEvent result =
          new com.google.cloud.talent.v4beta1.ClientEvent(this);
      result.requestId_ = requestId_;
      result.eventId_ = eventId_;
      if (createTimeBuilder_ == null) {
        result.createTime_ = createTime_;
      } else {
        result.createTime_ = createTimeBuilder_.build();
      }
      if (eventCase_ == 5) {
        if (jobEventBuilder_ == null) {
          result.event_ = event_;
        } else {
          result.event_ = jobEventBuilder_.build();
        }
      }
      if (eventCase_ == 6) {
        if (profileEventBuilder_ == null) {
          result.event_ = event_;
        } else {
          result.event_ = profileEventBuilder_.build();
        }
      }
      result.eventNotes_ = eventNotes_;
      result.eventCase_ = eventCase_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.talent.v4beta1.ClientEvent) {
        return mergeFrom((com.google.cloud.talent.v4beta1.ClientEvent) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.talent.v4beta1.ClientEvent other) {
      if (other == com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance()) return this;
      if (!other.getRequestId().isEmpty()) {
        requestId_ = other.requestId_;
        onChanged();
      }
      if (!other.getEventId().isEmpty()) {
        eventId_ = other.eventId_;
        onChanged();
      }
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (!other.getEventNotes().isEmpty()) {
        eventNotes_ = other.eventNotes_;
        onChanged();
      }
      switch (other.getEventCase()) {
        case JOB_EVENT:
          {
            mergeJobEvent(other.getJobEvent());
            break;
          }
        case PROFILE_EVENT:
          {
            mergeProfileEvent(other.getProfileEvent());
            break;
          }
        case EVENT_NOT_SET:
          {
            break;
          }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.cloud.talent.v4beta1.ClientEvent parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.cloud.talent.v4beta1.ClientEvent) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int eventCase_ = 0;
    private java.lang.Object event_;

    public EventCase getEventCase() {
      return EventCase.forNumber(eventCase_);
    }

    public Builder clearEvent() {
      eventCase_ = 0;
      event_ = null;
      onChanged();
      return this;
    }

    private java.lang.Object requestId_ = "";
    /**
     *
     *
     * <pre>
     * Required.
     * A unique ID generated in the API responses. It can be found in
     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
     * </pre>
     *
     * <code>string request_id = 1;</code>
     */
    public java.lang.String getRequestId() {
      java.lang.Object ref = requestId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        requestId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required.
     * A unique ID generated in the API responses. It can be found in
     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
     * </pre>
     *
     * <code>string request_id = 1;</code>
     */
    public com.google.protobuf.ByteString getRequestIdBytes() {
      java.lang.Object ref = requestId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        requestId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required.
     * A unique ID generated in the API responses. It can be found in
     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
     * </pre>
     *
     * <code>string request_id = 1;</code>
     */
    public Builder setRequestId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      requestId_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required.
     * A unique ID generated in the API responses. It can be found in
     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
     * </pre>
     *
     * <code>string request_id = 1;</code>
     */
    public Builder clearRequestId() {

      requestId_ = getDefaultInstance().getRequestId();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required.
     * A unique ID generated in the API responses. It can be found in
     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
     * </pre>
     *
     * <code>string request_id = 1;</code>
     */
    public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      requestId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object eventId_ = "";
    /**
     *
     *
     * <pre>
     * Required.
     * A unique identifier, generated by the client application.
     * </pre>
     *
     * <code>string event_id = 2;</code>
     */
    public java.lang.String getEventId() {
      java.lang.Object ref = eventId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        eventId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required.
     * A unique identifier, generated by the client application.
     * </pre>
     *
     * <code>string event_id = 2;</code>
     */
    public com.google.protobuf.ByteString getEventIdBytes() {
      java.lang.Object ref = eventId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        eventId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required.
     * A unique identifier, generated by the client application.
     * </pre>
     *
     * <code>string event_id = 2;</code>
     */
    public Builder setEventId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      eventId_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required.
     * A unique identifier, generated by the client application.
     * </pre>
     *
     * <code>string event_id = 2;</code>
     */
    public Builder clearEventId() {

      eventId_ = getDefaultInstance().getEventId();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required.
     * A unique identifier, generated by the client application.
     * </pre>
     *
     * <code>string event_id = 2;</code>
     */
    public Builder setEventIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      eventId_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.Timestamp createTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        createTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Required.
     * The timestamp of the event.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 4;</code>
     */
    public boolean hasCreateTime() {
      return createTimeBuilder_ != null || createTime_ != null;
    }
    /**
     *
     *
     * <pre>
     * Required.
     * The timestamp of the event.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 4;</code>
     */
    public com.google.protobuf.Timestamp getCreateTime() {
      if (createTimeBuilder_ == null) {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      } else {
        return createTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Required.
     * The timestamp of the event.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 4;</code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        createTime_ = value;
        onChanged();
      } else {
        createTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Required.
     * The timestamp of the event.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 4;</code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (createTimeBuilder_ == null) {
        createTime_ = builderForValue.build();
        onChanged();
      } else {
        createTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Required.
     * The timestamp of the event.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 4;</code>
     */
    public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (createTime_ != null) {
          createTime_ =
              com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
        } else {
          createTime_ = value;
        }
        onChanged();
      } else {
        createTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Required.
     * The timestamp of the event.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 4;</code>
     */
    public Builder clearCreateTime() {
      if (createTimeBuilder_ == null) {
        createTime_ = null;
        onChanged();
      } else {
        createTime_ = null;
        createTimeBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Required.
     * The timestamp of the event.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 4;</code>
     */
    public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {

      onChanged();
      return getCreateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Required.
     * The timestamp of the event.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 4;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      if (createTimeBuilder_ != null) {
        return createTimeBuilder_.getMessageOrBuilder();
      } else {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Required.
     * The timestamp of the event.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getCreateTimeFieldBuilder() {
      if (createTimeBuilder_ == null) {
        createTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getCreateTime(), getParentForChildren(), isClean());
        createTime_ = null;
      }
      return createTimeBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.JobEvent,
            com.google.cloud.talent.v4beta1.JobEvent.Builder,
            com.google.cloud.talent.v4beta1.JobEventOrBuilder>
        jobEventBuilder_;
    /**
     *
     *
     * <pre>
     * An event issued when a job seeker interacts with the application that
     * implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.JobEvent job_event = 5;</code>
     */
    public boolean hasJobEvent() {
      return eventCase_ == 5;
    }
    /**
     *
     *
     * <pre>
     * An event issued when a job seeker interacts with the application that
     * implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.JobEvent job_event = 5;</code>
     */
    public com.google.cloud.talent.v4beta1.JobEvent getJobEvent() {
      if (jobEventBuilder_ == null) {
        if (eventCase_ == 5) {
          return (com.google.cloud.talent.v4beta1.JobEvent) event_;
        }
        return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance();
      } else {
        if (eventCase_ == 5) {
          return jobEventBuilder_.getMessage();
        }
        return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * An event issued when a job seeker interacts with the application that
     * implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.JobEvent job_event = 5;</code>
     */
    public Builder setJobEvent(com.google.cloud.talent.v4beta1.JobEvent value) {
      if (jobEventBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        event_ = value;
        onChanged();
      } else {
        jobEventBuilder_.setMessage(value);
      }
      eventCase_ = 5;
      return this;
    }
    /**
     *
     *
     * <pre>
     * An event issued when a job seeker interacts with the application that
     * implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.JobEvent job_event = 5;</code>
     */
    public Builder setJobEvent(com.google.cloud.talent.v4beta1.JobEvent.Builder builderForValue) {
      if (jobEventBuilder_ == null) {
        event_ = builderForValue.build();
        onChanged();
      } else {
        jobEventBuilder_.setMessage(builderForValue.build());
      }
      eventCase_ = 5;
      return this;
    }
    /**
     *
     *
     * <pre>
     * An event issued when a job seeker interacts with the application that
     * implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.JobEvent job_event = 5;</code>
     */
    public Builder mergeJobEvent(com.google.cloud.talent.v4beta1.JobEvent value) {
      if (jobEventBuilder_ == null) {
        if (eventCase_ == 5
            && event_ != com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance()) {
          event_ =
              com.google.cloud.talent.v4beta1.JobEvent.newBuilder(
                      (com.google.cloud.talent.v4beta1.JobEvent) event_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          event_ = value;
        }
        onChanged();
      } else {
        if (eventCase_ == 5) {
          jobEventBuilder_.mergeFrom(value);
        }
        jobEventBuilder_.setMessage(value);
      }
      eventCase_ = 5;
      return this;
    }
    /**
     *
     *
     * <pre>
     * An event issued when a job seeker interacts with the application that
     * implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.JobEvent job_event = 5;</code>
     */
    public Builder clearJobEvent() {
      if (jobEventBuilder_ == null) {
        if (eventCase_ == 5) {
          eventCase_ = 0;
          event_ = null;
          onChanged();
        }
      } else {
        if (eventCase_ == 5) {
          eventCase_ = 0;
          event_ = null;
        }
        jobEventBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * An event issued when a job seeker interacts with the application that
     * implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.JobEvent job_event = 5;</code>
     */
    public com.google.cloud.talent.v4beta1.JobEvent.Builder getJobEventBuilder() {
      return getJobEventFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * An event issued when a job seeker interacts with the application that
     * implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.JobEvent job_event = 5;</code>
     */
    public com.google.cloud.talent.v4beta1.JobEventOrBuilder getJobEventOrBuilder() {
      if ((eventCase_ == 5) && (jobEventBuilder_ != null)) {
        return jobEventBuilder_.getMessageOrBuilder();
      } else {
        if (eventCase_ == 5) {
          return (com.google.cloud.talent.v4beta1.JobEvent) event_;
        }
        return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * An event issued when a job seeker interacts with the application that
     * implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.JobEvent job_event = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.JobEvent,
            com.google.cloud.talent.v4beta1.JobEvent.Builder,
            com.google.cloud.talent.v4beta1.JobEventOrBuilder>
        getJobEventFieldBuilder() {
      if (jobEventBuilder_ == null) {
        if (!(eventCase_ == 5)) {
          event_ = com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance();
        }
        jobEventBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.talent.v4beta1.JobEvent,
                com.google.cloud.talent.v4beta1.JobEvent.Builder,
                com.google.cloud.talent.v4beta1.JobEventOrBuilder>(
                (com.google.cloud.talent.v4beta1.JobEvent) event_,
                getParentForChildren(),
                isClean());
        event_ = null;
      }
      eventCase_ = 5;
      onChanged();
      ;
      return jobEventBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.ProfileEvent,
            com.google.cloud.talent.v4beta1.ProfileEvent.Builder,
            com.google.cloud.talent.v4beta1.ProfileEventOrBuilder>
        profileEventBuilder_;
    /**
     *
     *
     * <pre>
     * An event issued when a profile searcher interacts with the application
     * that implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.ProfileEvent profile_event = 6;</code>
     */
    public boolean hasProfileEvent() {
      return eventCase_ == 6;
    }
    /**
     *
     *
     * <pre>
     * An event issued when a profile searcher interacts with the application
     * that implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.ProfileEvent profile_event = 6;</code>
     */
    public com.google.cloud.talent.v4beta1.ProfileEvent getProfileEvent() {
      if (profileEventBuilder_ == null) {
        if (eventCase_ == 6) {
          return (com.google.cloud.talent.v4beta1.ProfileEvent) event_;
        }
        return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance();
      } else {
        if (eventCase_ == 6) {
          return profileEventBuilder_.getMessage();
        }
        return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * An event issued when a profile searcher interacts with the application
     * that implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.ProfileEvent profile_event = 6;</code>
     */
    public Builder setProfileEvent(com.google.cloud.talent.v4beta1.ProfileEvent value) {
      if (profileEventBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        event_ = value;
        onChanged();
      } else {
        profileEventBuilder_.setMessage(value);
      }
      eventCase_ = 6;
      return this;
    }
    /**
     *
     *
     * <pre>
     * An event issued when a profile searcher interacts with the application
     * that implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.ProfileEvent profile_event = 6;</code>
     */
    public Builder setProfileEvent(
        com.google.cloud.talent.v4beta1.ProfileEvent.Builder builderForValue) {
      if (profileEventBuilder_ == null) {
        event_ = builderForValue.build();
        onChanged();
      } else {
        profileEventBuilder_.setMessage(builderForValue.build());
      }
      eventCase_ = 6;
      return this;
    }
    /**
     *
     *
     * <pre>
     * An event issued when a profile searcher interacts with the application
     * that implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.ProfileEvent profile_event = 6;</code>
     */
    public Builder mergeProfileEvent(com.google.cloud.talent.v4beta1.ProfileEvent value) {
      if (profileEventBuilder_ == null) {
        if (eventCase_ == 6
            && event_ != com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance()) {
          event_ =
              com.google.cloud.talent.v4beta1.ProfileEvent.newBuilder(
                      (com.google.cloud.talent.v4beta1.ProfileEvent) event_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          event_ = value;
        }
        onChanged();
      } else {
        if (eventCase_ == 6) {
          profileEventBuilder_.mergeFrom(value);
        }
        profileEventBuilder_.setMessage(value);
      }
      eventCase_ = 6;
      return this;
    }
    /**
     *
     *
     * <pre>
     * An event issued when a profile searcher interacts with the application
     * that implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.ProfileEvent profile_event = 6;</code>
     */
    public Builder clearProfileEvent() {
      if (profileEventBuilder_ == null) {
        if (eventCase_ == 6) {
          eventCase_ = 0;
          event_ = null;
          onChanged();
        }
      } else {
        if (eventCase_ == 6) {
          eventCase_ = 0;
          event_ = null;
        }
        profileEventBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * An event issued when a profile searcher interacts with the application
     * that implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.ProfileEvent profile_event = 6;</code>
     */
    public com.google.cloud.talent.v4beta1.ProfileEvent.Builder getProfileEventBuilder() {
      return getProfileEventFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * An event issued when a profile searcher interacts with the application
     * that implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.ProfileEvent profile_event = 6;</code>
     */
    public com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBuilder() {
      if ((eventCase_ == 6) && (profileEventBuilder_ != null)) {
        return profileEventBuilder_.getMessageOrBuilder();
      } else {
        if (eventCase_ == 6) {
          return (com.google.cloud.talent.v4beta1.ProfileEvent) event_;
        }
        return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * An event issued when a profile searcher interacts with the application
     * that implements Cloud Talent Solution.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.ProfileEvent profile_event = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.ProfileEvent,
            com.google.cloud.talent.v4beta1.ProfileEvent.Builder,
            com.google.cloud.talent.v4beta1.ProfileEventOrBuilder>
        getProfileEventFieldBuilder() {
      if (profileEventBuilder_ == null) {
        if (!(eventCase_ == 6)) {
          event_ = com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance();
        }
        profileEventBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.talent.v4beta1.ProfileEvent,
                com.google.cloud.talent.v4beta1.ProfileEvent.Builder,
                com.google.cloud.talent.v4beta1.ProfileEventOrBuilder>(
                (com.google.cloud.talent.v4beta1.ProfileEvent) event_,
                getParentForChildren(),
                isClean());
        event_ = null;
      }
      eventCase_ = 6;
      onChanged();
      ;
      return profileEventBuilder_;
    }

    private java.lang.Object eventNotes_ = "";
    /**
     *
     *
     * <pre>
     * Optional.
     * Notes about the event provided by recruiters or other users, for example,
     * feedback on why a profile was bookmarked.
     * </pre>
     *
     * <code>string event_notes = 9;</code>
     */
    public java.lang.String getEventNotes() {
      java.lang.Object ref = eventNotes_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        eventNotes_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Notes about the event provided by recruiters or other users, for example,
     * feedback on why a profile was bookmarked.
     * </pre>
     *
     * <code>string event_notes = 9;</code>
     */
    public com.google.protobuf.ByteString getEventNotesBytes() {
      java.lang.Object ref = eventNotes_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        eventNotes_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Notes about the event provided by recruiters or other users, for example,
     * feedback on why a profile was bookmarked.
     * </pre>
     *
     * <code>string event_notes = 9;</code>
     */
    public Builder setEventNotes(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      eventNotes_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Notes about the event provided by recruiters or other users, for example,
     * feedback on why a profile was bookmarked.
     * </pre>
     *
     * <code>string event_notes = 9;</code>
     */
    public Builder clearEventNotes() {

      eventNotes_ = getDefaultInstance().getEventNotes();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Notes about the event provided by recruiters or other users, for example,
     * feedback on why a profile was bookmarked.
     * </pre>
     *
     * <code>string event_notes = 9;</code>
     */
    public Builder setEventNotesBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      eventNotes_ = value;
      onChanged();
      return this;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ClientEvent)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ClientEvent)
  private static final com.google.cloud.talent.v4beta1.ClientEvent DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ClientEvent();
  }

  public static com.google.cloud.talent.v4beta1.ClientEvent getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<ClientEvent> PARSER =
      new com.google.protobuf.AbstractParser<ClientEvent>() {
        @java.lang.Override
        public ClientEvent parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new ClientEvent(input, extensionRegistry);
        }
      };

  public static com.google.protobuf.Parser<ClientEvent> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<ClientEvent> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.talent.v4beta1.ClientEvent getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
