All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.promoted.proto.event.AncestorIdHistoryItem Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/event/event.proto

package ai.promoted.proto.event;

/**
 * Protobuf type {@code event.AncestorIdHistoryItem}
 */
public final class AncestorIdHistoryItem extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:event.AncestorIdHistoryItem)
    AncestorIdHistoryItemOrBuilder {
private static final long serialVersionUID = 0L;
  // Use AncestorIdHistoryItem.newBuilder() to construct.
  private AncestorIdHistoryItem(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private AncestorIdHistoryItem() {
    ancestorId_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new AncestorIdHistoryItem();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private AncestorIdHistoryItem(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    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();

            ancestorId_ = s;
            break;
          }
          case 18: {
            ai.promoted.proto.event.User.Builder subBuilder = null;
            if (loggedEventCase_ == 2) {
              subBuilder = ((ai.promoted.proto.event.User) loggedEvent_).toBuilder();
            }
            loggedEvent_ =
                input.readMessage(ai.promoted.proto.event.User.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((ai.promoted.proto.event.User) loggedEvent_);
              loggedEvent_ = subBuilder.buildPartial();
            }
            loggedEventCase_ = 2;
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();
            loggedEventCase_ = 3;
            loggedEvent_ = s;
            break;
          }
          case 34: {
            ai.promoted.proto.event.View.Builder subBuilder = null;
            if (loggedEventCase_ == 4) {
              subBuilder = ((ai.promoted.proto.event.View) loggedEvent_).toBuilder();
            }
            loggedEvent_ =
                input.readMessage(ai.promoted.proto.event.View.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((ai.promoted.proto.event.View) loggedEvent_);
              loggedEvent_ = subBuilder.buildPartial();
            }
            loggedEventCase_ = 4;
            break;
          }
          case 40: {

            batchNumber_ = input.readInt32();
            break;
          }
          case 50: {
            ai.promoted.proto.event.AutoView.Builder subBuilder = null;
            if (loggedEventCase_ == 6) {
              subBuilder = ((ai.promoted.proto.event.AutoView) loggedEvent_).toBuilder();
            }
            loggedEvent_ =
                input.readMessage(ai.promoted.proto.event.AutoView.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((ai.promoted.proto.event.AutoView) loggedEvent_);
              loggedEvent_ = subBuilder.buildPartial();
            }
            loggedEventCase_ = 6;
            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 ai.promoted.proto.event.Event.internal_static_event_AncestorIdHistoryItem_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return ai.promoted.proto.event.Event.internal_static_event_AncestorIdHistoryItem_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            ai.promoted.proto.event.AncestorIdHistoryItem.class, ai.promoted.proto.event.AncestorIdHistoryItem.Builder.class);
  }

  private int loggedEventCase_ = 0;
  private java.lang.Object loggedEvent_;
  public enum LoggedEventCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    USER_EVENT(2),
    SESSION_ID_FROM_USER_EVENT(3),
    VIEW_EVENT(4),
    AUTO_VIEW_EVENT(6),
    LOGGEDEVENT_NOT_SET(0);
    private final int value;
    private LoggedEventCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static LoggedEventCase valueOf(int value) {
      return forNumber(value);
    }

    public static LoggedEventCase forNumber(int value) {
      switch (value) {
        case 2: return USER_EVENT;
        case 3: return SESSION_ID_FROM_USER_EVENT;
        case 4: return VIEW_EVENT;
        case 6: return AUTO_VIEW_EVENT;
        case 0: return LOGGEDEVENT_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public LoggedEventCase
  getLoggedEventCase() {
    return LoggedEventCase.forNumber(
        loggedEventCase_);
  }

  public static final int ANCESTOR_ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object ancestorId_;
  /**
   * string ancestor_id = 1 [json_name = "ancestorId"];
   * @return The ancestorId.
   */
  @java.lang.Override
  public java.lang.String getAncestorId() {
    java.lang.Object ref = ancestorId_;
    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();
      ancestorId_ = s;
      return s;
    }
  }
  /**
   * string ancestor_id = 1 [json_name = "ancestorId"];
   * @return The bytes for ancestorId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAncestorIdBytes() {
    java.lang.Object ref = ancestorId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      ancestorId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int USER_EVENT_FIELD_NUMBER = 2;
  /**
   * .event.User user_event = 2 [json_name = "userEvent"];
   * @return Whether the userEvent field is set.
   */
  @java.lang.Override
  public boolean hasUserEvent() {
    return loggedEventCase_ == 2;
  }
  /**
   * .event.User user_event = 2 [json_name = "userEvent"];
   * @return The userEvent.
   */
  @java.lang.Override
  public ai.promoted.proto.event.User getUserEvent() {
    if (loggedEventCase_ == 2) {
       return (ai.promoted.proto.event.User) loggedEvent_;
    }
    return ai.promoted.proto.event.User.getDefaultInstance();
  }
  /**
   * .event.User user_event = 2 [json_name = "userEvent"];
   */
  @java.lang.Override
  public ai.promoted.proto.event.UserOrBuilder getUserEventOrBuilder() {
    if (loggedEventCase_ == 2) {
       return (ai.promoted.proto.event.User) loggedEvent_;
    }
    return ai.promoted.proto.event.User.getDefaultInstance();
  }

  public static final int SESSION_ID_FROM_USER_EVENT_FIELD_NUMBER = 3;
  /**
   * string session_id_from_user_event = 3 [json_name = "sessionIdFromUserEvent"];
   * @return Whether the sessionIdFromUserEvent field is set.
   */
  public boolean hasSessionIdFromUserEvent() {
    return loggedEventCase_ == 3;
  }
  /**
   * string session_id_from_user_event = 3 [json_name = "sessionIdFromUserEvent"];
   * @return The sessionIdFromUserEvent.
   */
  public java.lang.String getSessionIdFromUserEvent() {
    java.lang.Object ref = "";
    if (loggedEventCase_ == 3) {
      ref = loggedEvent_;
    }
    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();
      if (loggedEventCase_ == 3) {
        loggedEvent_ = s;
      }
      return s;
    }
  }
  /**
   * string session_id_from_user_event = 3 [json_name = "sessionIdFromUserEvent"];
   * @return The bytes for sessionIdFromUserEvent.
   */
  public com.google.protobuf.ByteString
      getSessionIdFromUserEventBytes() {
    java.lang.Object ref = "";
    if (loggedEventCase_ == 3) {
      ref = loggedEvent_;
    }
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      if (loggedEventCase_ == 3) {
        loggedEvent_ = b;
      }
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int VIEW_EVENT_FIELD_NUMBER = 4;
  /**
   * .event.View view_event = 4 [json_name = "viewEvent"];
   * @return Whether the viewEvent field is set.
   */
  @java.lang.Override
  public boolean hasViewEvent() {
    return loggedEventCase_ == 4;
  }
  /**
   * .event.View view_event = 4 [json_name = "viewEvent"];
   * @return The viewEvent.
   */
  @java.lang.Override
  public ai.promoted.proto.event.View getViewEvent() {
    if (loggedEventCase_ == 4) {
       return (ai.promoted.proto.event.View) loggedEvent_;
    }
    return ai.promoted.proto.event.View.getDefaultInstance();
  }
  /**
   * .event.View view_event = 4 [json_name = "viewEvent"];
   */
  @java.lang.Override
  public ai.promoted.proto.event.ViewOrBuilder getViewEventOrBuilder() {
    if (loggedEventCase_ == 4) {
       return (ai.promoted.proto.event.View) loggedEvent_;
    }
    return ai.promoted.proto.event.View.getDefaultInstance();
  }

  public static final int AUTO_VIEW_EVENT_FIELD_NUMBER = 6;
  /**
   * .event.AutoView auto_view_event = 6 [json_name = "autoViewEvent"];
   * @return Whether the autoViewEvent field is set.
   */
  @java.lang.Override
  public boolean hasAutoViewEvent() {
    return loggedEventCase_ == 6;
  }
  /**
   * .event.AutoView auto_view_event = 6 [json_name = "autoViewEvent"];
   * @return The autoViewEvent.
   */
  @java.lang.Override
  public ai.promoted.proto.event.AutoView getAutoViewEvent() {
    if (loggedEventCase_ == 6) {
       return (ai.promoted.proto.event.AutoView) loggedEvent_;
    }
    return ai.promoted.proto.event.AutoView.getDefaultInstance();
  }
  /**
   * .event.AutoView auto_view_event = 6 [json_name = "autoViewEvent"];
   */
  @java.lang.Override
  public ai.promoted.proto.event.AutoViewOrBuilder getAutoViewEventOrBuilder() {
    if (loggedEventCase_ == 6) {
       return (ai.promoted.proto.event.AutoView) loggedEvent_;
    }
    return ai.promoted.proto.event.AutoView.getDefaultInstance();
  }

  public static final int BATCH_NUMBER_FIELD_NUMBER = 5;
  private int batchNumber_;
  /**
   * int32 batch_number = 5 [json_name = "batchNumber"];
   * @return The batchNumber.
   */
  @java.lang.Override
  public int getBatchNumber() {
    return batchNumber_;
  }

  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 (!getAncestorIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ancestorId_);
    }
    if (loggedEventCase_ == 2) {
      output.writeMessage(2, (ai.promoted.proto.event.User) loggedEvent_);
    }
    if (loggedEventCase_ == 3) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, loggedEvent_);
    }
    if (loggedEventCase_ == 4) {
      output.writeMessage(4, (ai.promoted.proto.event.View) loggedEvent_);
    }
    if (batchNumber_ != 0) {
      output.writeInt32(5, batchNumber_);
    }
    if (loggedEventCase_ == 6) {
      output.writeMessage(6, (ai.promoted.proto.event.AutoView) loggedEvent_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getAncestorIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ancestorId_);
    }
    if (loggedEventCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (ai.promoted.proto.event.User) loggedEvent_);
    }
    if (loggedEventCase_ == 3) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, loggedEvent_);
    }
    if (loggedEventCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (ai.promoted.proto.event.View) loggedEvent_);
    }
    if (batchNumber_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, batchNumber_);
    }
    if (loggedEventCase_ == 6) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, (ai.promoted.proto.event.AutoView) loggedEvent_);
    }
    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 ai.promoted.proto.event.AncestorIdHistoryItem)) {
      return super.equals(obj);
    }
    ai.promoted.proto.event.AncestorIdHistoryItem other = (ai.promoted.proto.event.AncestorIdHistoryItem) obj;

    if (!getAncestorId()
        .equals(other.getAncestorId())) return false;
    if (getBatchNumber()
        != other.getBatchNumber()) return false;
    if (!getLoggedEventCase().equals(other.getLoggedEventCase())) return false;
    switch (loggedEventCase_) {
      case 2:
        if (!getUserEvent()
            .equals(other.getUserEvent())) return false;
        break;
      case 3:
        if (!getSessionIdFromUserEvent()
            .equals(other.getSessionIdFromUserEvent())) return false;
        break;
      case 4:
        if (!getViewEvent()
            .equals(other.getViewEvent())) return false;
        break;
      case 6:
        if (!getAutoViewEvent()
            .equals(other.getAutoViewEvent())) 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) + ANCESTOR_ID_FIELD_NUMBER;
    hash = (53 * hash) + getAncestorId().hashCode();
    hash = (37 * hash) + BATCH_NUMBER_FIELD_NUMBER;
    hash = (53 * hash) + getBatchNumber();
    switch (loggedEventCase_) {
      case 2:
        hash = (37 * hash) + USER_EVENT_FIELD_NUMBER;
        hash = (53 * hash) + getUserEvent().hashCode();
        break;
      case 3:
        hash = (37 * hash) + SESSION_ID_FROM_USER_EVENT_FIELD_NUMBER;
        hash = (53 * hash) + getSessionIdFromUserEvent().hashCode();
        break;
      case 4:
        hash = (37 * hash) + VIEW_EVENT_FIELD_NUMBER;
        hash = (53 * hash) + getViewEvent().hashCode();
        break;
      case 6:
        hash = (37 * hash) + AUTO_VIEW_EVENT_FIELD_NUMBER;
        hash = (53 * hash) + getAutoViewEvent().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static ai.promoted.proto.event.AncestorIdHistoryItem parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ai.promoted.proto.event.AncestorIdHistoryItem parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static ai.promoted.proto.event.AncestorIdHistoryItem parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ai.promoted.proto.event.AncestorIdHistoryItem parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static ai.promoted.proto.event.AncestorIdHistoryItem parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ai.promoted.proto.event.AncestorIdHistoryItem parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static ai.promoted.proto.event.AncestorIdHistoryItem parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static ai.promoted.proto.event.AncestorIdHistoryItem 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 ai.promoted.proto.event.AncestorIdHistoryItem parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static ai.promoted.proto.event.AncestorIdHistoryItem 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 ai.promoted.proto.event.AncestorIdHistoryItem parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static ai.promoted.proto.event.AncestorIdHistoryItem 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(ai.promoted.proto.event.AncestorIdHistoryItem 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;
  }
  /**
   * Protobuf type {@code event.AncestorIdHistoryItem}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:event.AncestorIdHistoryItem)
      ai.promoted.proto.event.AncestorIdHistoryItemOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return ai.promoted.proto.event.Event.internal_static_event_AncestorIdHistoryItem_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return ai.promoted.proto.event.Event.internal_static_event_AncestorIdHistoryItem_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              ai.promoted.proto.event.AncestorIdHistoryItem.class, ai.promoted.proto.event.AncestorIdHistoryItem.Builder.class);
    }

    // Construct using ai.promoted.proto.event.AncestorIdHistoryItem.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();
      ancestorId_ = "";

      batchNumber_ = 0;

      loggedEventCase_ = 0;
      loggedEvent_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return ai.promoted.proto.event.Event.internal_static_event_AncestorIdHistoryItem_descriptor;
    }

    @java.lang.Override
    public ai.promoted.proto.event.AncestorIdHistoryItem getDefaultInstanceForType() {
      return ai.promoted.proto.event.AncestorIdHistoryItem.getDefaultInstance();
    }

    @java.lang.Override
    public ai.promoted.proto.event.AncestorIdHistoryItem build() {
      ai.promoted.proto.event.AncestorIdHistoryItem result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public ai.promoted.proto.event.AncestorIdHistoryItem buildPartial() {
      ai.promoted.proto.event.AncestorIdHistoryItem result = new ai.promoted.proto.event.AncestorIdHistoryItem(this);
      result.ancestorId_ = ancestorId_;
      if (loggedEventCase_ == 2) {
        if (userEventBuilder_ == null) {
          result.loggedEvent_ = loggedEvent_;
        } else {
          result.loggedEvent_ = userEventBuilder_.build();
        }
      }
      if (loggedEventCase_ == 3) {
        result.loggedEvent_ = loggedEvent_;
      }
      if (loggedEventCase_ == 4) {
        if (viewEventBuilder_ == null) {
          result.loggedEvent_ = loggedEvent_;
        } else {
          result.loggedEvent_ = viewEventBuilder_.build();
        }
      }
      if (loggedEventCase_ == 6) {
        if (autoViewEventBuilder_ == null) {
          result.loggedEvent_ = loggedEvent_;
        } else {
          result.loggedEvent_ = autoViewEventBuilder_.build();
        }
      }
      result.batchNumber_ = batchNumber_;
      result.loggedEventCase_ = loggedEventCase_;
      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 ai.promoted.proto.event.AncestorIdHistoryItem) {
        return mergeFrom((ai.promoted.proto.event.AncestorIdHistoryItem)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(ai.promoted.proto.event.AncestorIdHistoryItem other) {
      if (other == ai.promoted.proto.event.AncestorIdHistoryItem.getDefaultInstance()) return this;
      if (!other.getAncestorId().isEmpty()) {
        ancestorId_ = other.ancestorId_;
        onChanged();
      }
      if (other.getBatchNumber() != 0) {
        setBatchNumber(other.getBatchNumber());
      }
      switch (other.getLoggedEventCase()) {
        case USER_EVENT: {
          mergeUserEvent(other.getUserEvent());
          break;
        }
        case SESSION_ID_FROM_USER_EVENT: {
          loggedEventCase_ = 3;
          loggedEvent_ = other.loggedEvent_;
          onChanged();
          break;
        }
        case VIEW_EVENT: {
          mergeViewEvent(other.getViewEvent());
          break;
        }
        case AUTO_VIEW_EVENT: {
          mergeAutoViewEvent(other.getAutoViewEvent());
          break;
        }
        case LOGGEDEVENT_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 {
      ai.promoted.proto.event.AncestorIdHistoryItem parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (ai.promoted.proto.event.AncestorIdHistoryItem) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int loggedEventCase_ = 0;
    private java.lang.Object loggedEvent_;
    public LoggedEventCase
        getLoggedEventCase() {
      return LoggedEventCase.forNumber(
          loggedEventCase_);
    }

    public Builder clearLoggedEvent() {
      loggedEventCase_ = 0;
      loggedEvent_ = null;
      onChanged();
      return this;
    }


    private java.lang.Object ancestorId_ = "";
    /**
     * string ancestor_id = 1 [json_name = "ancestorId"];
     * @return The ancestorId.
     */
    public java.lang.String getAncestorId() {
      java.lang.Object ref = ancestorId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        ancestorId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string ancestor_id = 1 [json_name = "ancestorId"];
     * @return The bytes for ancestorId.
     */
    public com.google.protobuf.ByteString
        getAncestorIdBytes() {
      java.lang.Object ref = ancestorId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        ancestorId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string ancestor_id = 1 [json_name = "ancestorId"];
     * @param value The ancestorId to set.
     * @return This builder for chaining.
     */
    public Builder setAncestorId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      ancestorId_ = value;
      onChanged();
      return this;
    }
    /**
     * string ancestor_id = 1 [json_name = "ancestorId"];
     * @return This builder for chaining.
     */
    public Builder clearAncestorId() {
      
      ancestorId_ = getDefaultInstance().getAncestorId();
      onChanged();
      return this;
    }
    /**
     * string ancestor_id = 1 [json_name = "ancestorId"];
     * @param value The bytes for ancestorId to set.
     * @return This builder for chaining.
     */
    public Builder setAncestorIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      ancestorId_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.event.User, ai.promoted.proto.event.User.Builder, ai.promoted.proto.event.UserOrBuilder> userEventBuilder_;
    /**
     * .event.User user_event = 2 [json_name = "userEvent"];
     * @return Whether the userEvent field is set.
     */
    @java.lang.Override
    public boolean hasUserEvent() {
      return loggedEventCase_ == 2;
    }
    /**
     * .event.User user_event = 2 [json_name = "userEvent"];
     * @return The userEvent.
     */
    @java.lang.Override
    public ai.promoted.proto.event.User getUserEvent() {
      if (userEventBuilder_ == null) {
        if (loggedEventCase_ == 2) {
          return (ai.promoted.proto.event.User) loggedEvent_;
        }
        return ai.promoted.proto.event.User.getDefaultInstance();
      } else {
        if (loggedEventCase_ == 2) {
          return userEventBuilder_.getMessage();
        }
        return ai.promoted.proto.event.User.getDefaultInstance();
      }
    }
    /**
     * .event.User user_event = 2 [json_name = "userEvent"];
     */
    public Builder setUserEvent(ai.promoted.proto.event.User value) {
      if (userEventBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        loggedEvent_ = value;
        onChanged();
      } else {
        userEventBuilder_.setMessage(value);
      }
      loggedEventCase_ = 2;
      return this;
    }
    /**
     * .event.User user_event = 2 [json_name = "userEvent"];
     */
    public Builder setUserEvent(
        ai.promoted.proto.event.User.Builder builderForValue) {
      if (userEventBuilder_ == null) {
        loggedEvent_ = builderForValue.build();
        onChanged();
      } else {
        userEventBuilder_.setMessage(builderForValue.build());
      }
      loggedEventCase_ = 2;
      return this;
    }
    /**
     * .event.User user_event = 2 [json_name = "userEvent"];
     */
    public Builder mergeUserEvent(ai.promoted.proto.event.User value) {
      if (userEventBuilder_ == null) {
        if (loggedEventCase_ == 2 &&
            loggedEvent_ != ai.promoted.proto.event.User.getDefaultInstance()) {
          loggedEvent_ = ai.promoted.proto.event.User.newBuilder((ai.promoted.proto.event.User) loggedEvent_)
              .mergeFrom(value).buildPartial();
        } else {
          loggedEvent_ = value;
        }
        onChanged();
      } else {
        if (loggedEventCase_ == 2) {
          userEventBuilder_.mergeFrom(value);
        }
        userEventBuilder_.setMessage(value);
      }
      loggedEventCase_ = 2;
      return this;
    }
    /**
     * .event.User user_event = 2 [json_name = "userEvent"];
     */
    public Builder clearUserEvent() {
      if (userEventBuilder_ == null) {
        if (loggedEventCase_ == 2) {
          loggedEventCase_ = 0;
          loggedEvent_ = null;
          onChanged();
        }
      } else {
        if (loggedEventCase_ == 2) {
          loggedEventCase_ = 0;
          loggedEvent_ = null;
        }
        userEventBuilder_.clear();
      }
      return this;
    }
    /**
     * .event.User user_event = 2 [json_name = "userEvent"];
     */
    public ai.promoted.proto.event.User.Builder getUserEventBuilder() {
      return getUserEventFieldBuilder().getBuilder();
    }
    /**
     * .event.User user_event = 2 [json_name = "userEvent"];
     */
    @java.lang.Override
    public ai.promoted.proto.event.UserOrBuilder getUserEventOrBuilder() {
      if ((loggedEventCase_ == 2) && (userEventBuilder_ != null)) {
        return userEventBuilder_.getMessageOrBuilder();
      } else {
        if (loggedEventCase_ == 2) {
          return (ai.promoted.proto.event.User) loggedEvent_;
        }
        return ai.promoted.proto.event.User.getDefaultInstance();
      }
    }
    /**
     * .event.User user_event = 2 [json_name = "userEvent"];
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.event.User, ai.promoted.proto.event.User.Builder, ai.promoted.proto.event.UserOrBuilder> 
        getUserEventFieldBuilder() {
      if (userEventBuilder_ == null) {
        if (!(loggedEventCase_ == 2)) {
          loggedEvent_ = ai.promoted.proto.event.User.getDefaultInstance();
        }
        userEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            ai.promoted.proto.event.User, ai.promoted.proto.event.User.Builder, ai.promoted.proto.event.UserOrBuilder>(
                (ai.promoted.proto.event.User) loggedEvent_,
                getParentForChildren(),
                isClean());
        loggedEvent_ = null;
      }
      loggedEventCase_ = 2;
      onChanged();;
      return userEventBuilder_;
    }

    /**
     * string session_id_from_user_event = 3 [json_name = "sessionIdFromUserEvent"];
     * @return Whether the sessionIdFromUserEvent field is set.
     */
    @java.lang.Override
    public boolean hasSessionIdFromUserEvent() {
      return loggedEventCase_ == 3;
    }
    /**
     * string session_id_from_user_event = 3 [json_name = "sessionIdFromUserEvent"];
     * @return The sessionIdFromUserEvent.
     */
    @java.lang.Override
    public java.lang.String getSessionIdFromUserEvent() {
      java.lang.Object ref = "";
      if (loggedEventCase_ == 3) {
        ref = loggedEvent_;
      }
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (loggedEventCase_ == 3) {
          loggedEvent_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string session_id_from_user_event = 3 [json_name = "sessionIdFromUserEvent"];
     * @return The bytes for sessionIdFromUserEvent.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getSessionIdFromUserEventBytes() {
      java.lang.Object ref = "";
      if (loggedEventCase_ == 3) {
        ref = loggedEvent_;
      }
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        if (loggedEventCase_ == 3) {
          loggedEvent_ = b;
        }
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string session_id_from_user_event = 3 [json_name = "sessionIdFromUserEvent"];
     * @param value The sessionIdFromUserEvent to set.
     * @return This builder for chaining.
     */
    public Builder setSessionIdFromUserEvent(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  loggedEventCase_ = 3;
      loggedEvent_ = value;
      onChanged();
      return this;
    }
    /**
     * string session_id_from_user_event = 3 [json_name = "sessionIdFromUserEvent"];
     * @return This builder for chaining.
     */
    public Builder clearSessionIdFromUserEvent() {
      if (loggedEventCase_ == 3) {
        loggedEventCase_ = 0;
        loggedEvent_ = null;
        onChanged();
      }
      return this;
    }
    /**
     * string session_id_from_user_event = 3 [json_name = "sessionIdFromUserEvent"];
     * @param value The bytes for sessionIdFromUserEvent to set.
     * @return This builder for chaining.
     */
    public Builder setSessionIdFromUserEventBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      loggedEventCase_ = 3;
      loggedEvent_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.event.View, ai.promoted.proto.event.View.Builder, ai.promoted.proto.event.ViewOrBuilder> viewEventBuilder_;
    /**
     * .event.View view_event = 4 [json_name = "viewEvent"];
     * @return Whether the viewEvent field is set.
     */
    @java.lang.Override
    public boolean hasViewEvent() {
      return loggedEventCase_ == 4;
    }
    /**
     * .event.View view_event = 4 [json_name = "viewEvent"];
     * @return The viewEvent.
     */
    @java.lang.Override
    public ai.promoted.proto.event.View getViewEvent() {
      if (viewEventBuilder_ == null) {
        if (loggedEventCase_ == 4) {
          return (ai.promoted.proto.event.View) loggedEvent_;
        }
        return ai.promoted.proto.event.View.getDefaultInstance();
      } else {
        if (loggedEventCase_ == 4) {
          return viewEventBuilder_.getMessage();
        }
        return ai.promoted.proto.event.View.getDefaultInstance();
      }
    }
    /**
     * .event.View view_event = 4 [json_name = "viewEvent"];
     */
    public Builder setViewEvent(ai.promoted.proto.event.View value) {
      if (viewEventBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        loggedEvent_ = value;
        onChanged();
      } else {
        viewEventBuilder_.setMessage(value);
      }
      loggedEventCase_ = 4;
      return this;
    }
    /**
     * .event.View view_event = 4 [json_name = "viewEvent"];
     */
    public Builder setViewEvent(
        ai.promoted.proto.event.View.Builder builderForValue) {
      if (viewEventBuilder_ == null) {
        loggedEvent_ = builderForValue.build();
        onChanged();
      } else {
        viewEventBuilder_.setMessage(builderForValue.build());
      }
      loggedEventCase_ = 4;
      return this;
    }
    /**
     * .event.View view_event = 4 [json_name = "viewEvent"];
     */
    public Builder mergeViewEvent(ai.promoted.proto.event.View value) {
      if (viewEventBuilder_ == null) {
        if (loggedEventCase_ == 4 &&
            loggedEvent_ != ai.promoted.proto.event.View.getDefaultInstance()) {
          loggedEvent_ = ai.promoted.proto.event.View.newBuilder((ai.promoted.proto.event.View) loggedEvent_)
              .mergeFrom(value).buildPartial();
        } else {
          loggedEvent_ = value;
        }
        onChanged();
      } else {
        if (loggedEventCase_ == 4) {
          viewEventBuilder_.mergeFrom(value);
        }
        viewEventBuilder_.setMessage(value);
      }
      loggedEventCase_ = 4;
      return this;
    }
    /**
     * .event.View view_event = 4 [json_name = "viewEvent"];
     */
    public Builder clearViewEvent() {
      if (viewEventBuilder_ == null) {
        if (loggedEventCase_ == 4) {
          loggedEventCase_ = 0;
          loggedEvent_ = null;
          onChanged();
        }
      } else {
        if (loggedEventCase_ == 4) {
          loggedEventCase_ = 0;
          loggedEvent_ = null;
        }
        viewEventBuilder_.clear();
      }
      return this;
    }
    /**
     * .event.View view_event = 4 [json_name = "viewEvent"];
     */
    public ai.promoted.proto.event.View.Builder getViewEventBuilder() {
      return getViewEventFieldBuilder().getBuilder();
    }
    /**
     * .event.View view_event = 4 [json_name = "viewEvent"];
     */
    @java.lang.Override
    public ai.promoted.proto.event.ViewOrBuilder getViewEventOrBuilder() {
      if ((loggedEventCase_ == 4) && (viewEventBuilder_ != null)) {
        return viewEventBuilder_.getMessageOrBuilder();
      } else {
        if (loggedEventCase_ == 4) {
          return (ai.promoted.proto.event.View) loggedEvent_;
        }
        return ai.promoted.proto.event.View.getDefaultInstance();
      }
    }
    /**
     * .event.View view_event = 4 [json_name = "viewEvent"];
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.event.View, ai.promoted.proto.event.View.Builder, ai.promoted.proto.event.ViewOrBuilder> 
        getViewEventFieldBuilder() {
      if (viewEventBuilder_ == null) {
        if (!(loggedEventCase_ == 4)) {
          loggedEvent_ = ai.promoted.proto.event.View.getDefaultInstance();
        }
        viewEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            ai.promoted.proto.event.View, ai.promoted.proto.event.View.Builder, ai.promoted.proto.event.ViewOrBuilder>(
                (ai.promoted.proto.event.View) loggedEvent_,
                getParentForChildren(),
                isClean());
        loggedEvent_ = null;
      }
      loggedEventCase_ = 4;
      onChanged();;
      return viewEventBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.event.AutoView, ai.promoted.proto.event.AutoView.Builder, ai.promoted.proto.event.AutoViewOrBuilder> autoViewEventBuilder_;
    /**
     * .event.AutoView auto_view_event = 6 [json_name = "autoViewEvent"];
     * @return Whether the autoViewEvent field is set.
     */
    @java.lang.Override
    public boolean hasAutoViewEvent() {
      return loggedEventCase_ == 6;
    }
    /**
     * .event.AutoView auto_view_event = 6 [json_name = "autoViewEvent"];
     * @return The autoViewEvent.
     */
    @java.lang.Override
    public ai.promoted.proto.event.AutoView getAutoViewEvent() {
      if (autoViewEventBuilder_ == null) {
        if (loggedEventCase_ == 6) {
          return (ai.promoted.proto.event.AutoView) loggedEvent_;
        }
        return ai.promoted.proto.event.AutoView.getDefaultInstance();
      } else {
        if (loggedEventCase_ == 6) {
          return autoViewEventBuilder_.getMessage();
        }
        return ai.promoted.proto.event.AutoView.getDefaultInstance();
      }
    }
    /**
     * .event.AutoView auto_view_event = 6 [json_name = "autoViewEvent"];
     */
    public Builder setAutoViewEvent(ai.promoted.proto.event.AutoView value) {
      if (autoViewEventBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        loggedEvent_ = value;
        onChanged();
      } else {
        autoViewEventBuilder_.setMessage(value);
      }
      loggedEventCase_ = 6;
      return this;
    }
    /**
     * .event.AutoView auto_view_event = 6 [json_name = "autoViewEvent"];
     */
    public Builder setAutoViewEvent(
        ai.promoted.proto.event.AutoView.Builder builderForValue) {
      if (autoViewEventBuilder_ == null) {
        loggedEvent_ = builderForValue.build();
        onChanged();
      } else {
        autoViewEventBuilder_.setMessage(builderForValue.build());
      }
      loggedEventCase_ = 6;
      return this;
    }
    /**
     * .event.AutoView auto_view_event = 6 [json_name = "autoViewEvent"];
     */
    public Builder mergeAutoViewEvent(ai.promoted.proto.event.AutoView value) {
      if (autoViewEventBuilder_ == null) {
        if (loggedEventCase_ == 6 &&
            loggedEvent_ != ai.promoted.proto.event.AutoView.getDefaultInstance()) {
          loggedEvent_ = ai.promoted.proto.event.AutoView.newBuilder((ai.promoted.proto.event.AutoView) loggedEvent_)
              .mergeFrom(value).buildPartial();
        } else {
          loggedEvent_ = value;
        }
        onChanged();
      } else {
        if (loggedEventCase_ == 6) {
          autoViewEventBuilder_.mergeFrom(value);
        }
        autoViewEventBuilder_.setMessage(value);
      }
      loggedEventCase_ = 6;
      return this;
    }
    /**
     * .event.AutoView auto_view_event = 6 [json_name = "autoViewEvent"];
     */
    public Builder clearAutoViewEvent() {
      if (autoViewEventBuilder_ == null) {
        if (loggedEventCase_ == 6) {
          loggedEventCase_ = 0;
          loggedEvent_ = null;
          onChanged();
        }
      } else {
        if (loggedEventCase_ == 6) {
          loggedEventCase_ = 0;
          loggedEvent_ = null;
        }
        autoViewEventBuilder_.clear();
      }
      return this;
    }
    /**
     * .event.AutoView auto_view_event = 6 [json_name = "autoViewEvent"];
     */
    public ai.promoted.proto.event.AutoView.Builder getAutoViewEventBuilder() {
      return getAutoViewEventFieldBuilder().getBuilder();
    }
    /**
     * .event.AutoView auto_view_event = 6 [json_name = "autoViewEvent"];
     */
    @java.lang.Override
    public ai.promoted.proto.event.AutoViewOrBuilder getAutoViewEventOrBuilder() {
      if ((loggedEventCase_ == 6) && (autoViewEventBuilder_ != null)) {
        return autoViewEventBuilder_.getMessageOrBuilder();
      } else {
        if (loggedEventCase_ == 6) {
          return (ai.promoted.proto.event.AutoView) loggedEvent_;
        }
        return ai.promoted.proto.event.AutoView.getDefaultInstance();
      }
    }
    /**
     * .event.AutoView auto_view_event = 6 [json_name = "autoViewEvent"];
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.event.AutoView, ai.promoted.proto.event.AutoView.Builder, ai.promoted.proto.event.AutoViewOrBuilder> 
        getAutoViewEventFieldBuilder() {
      if (autoViewEventBuilder_ == null) {
        if (!(loggedEventCase_ == 6)) {
          loggedEvent_ = ai.promoted.proto.event.AutoView.getDefaultInstance();
        }
        autoViewEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            ai.promoted.proto.event.AutoView, ai.promoted.proto.event.AutoView.Builder, ai.promoted.proto.event.AutoViewOrBuilder>(
                (ai.promoted.proto.event.AutoView) loggedEvent_,
                getParentForChildren(),
                isClean());
        loggedEvent_ = null;
      }
      loggedEventCase_ = 6;
      onChanged();;
      return autoViewEventBuilder_;
    }

    private int batchNumber_ ;
    /**
     * int32 batch_number = 5 [json_name = "batchNumber"];
     * @return The batchNumber.
     */
    @java.lang.Override
    public int getBatchNumber() {
      return batchNumber_;
    }
    /**
     * int32 batch_number = 5 [json_name = "batchNumber"];
     * @param value The batchNumber to set.
     * @return This builder for chaining.
     */
    public Builder setBatchNumber(int value) {
      
      batchNumber_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 batch_number = 5 [json_name = "batchNumber"];
     * @return This builder for chaining.
     */
    public Builder clearBatchNumber() {
      
      batchNumber_ = 0;
      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:event.AncestorIdHistoryItem)
  }

  // @@protoc_insertion_point(class_scope:event.AncestorIdHistoryItem)
  private static final ai.promoted.proto.event.AncestorIdHistoryItem DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new ai.promoted.proto.event.AncestorIdHistoryItem();
  }

  public static ai.promoted.proto.event.AncestorIdHistoryItem getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public ai.promoted.proto.event.AncestorIdHistoryItem getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy