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

ai.promoted.proto.common.AnonUserRetainedUser 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/common/retained_user.proto

package ai.promoted.proto.common;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private AnonUserRetainedUser(
      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 8: {

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

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

            retainedUserId_ = s;
            break;
          }
          case 32: {

            eventTimeMillis_ = input.readUInt64();
            break;
          }
          case 40: {

            processTimeMillis_ = input.readUInt64();
            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.common.RetainedUserOuterClass.internal_static_common_AnonUserRetainedUser_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return ai.promoted.proto.common.RetainedUserOuterClass.internal_static_common_AnonUserRetainedUser_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            ai.promoted.proto.common.AnonUserRetainedUser.class, ai.promoted.proto.common.AnonUserRetainedUser.Builder.class);
  }

  public static final int PLATFORM_ID_FIELD_NUMBER = 1;
  private long platformId_;
  /**
   * uint64 platform_id = 1 [json_name = "platformId"];
   * @return The platformId.
   */
  @java.lang.Override
  public long getPlatformId() {
    return platformId_;
  }

  public static final int ANON_USER_ID_FIELD_NUMBER = 2;
  private volatile java.lang.Object anonUserId_;
  /**
   * string anon_user_id = 2 [json_name = "anonUserId"];
   * @return The anonUserId.
   */
  @java.lang.Override
  public java.lang.String getAnonUserId() {
    java.lang.Object ref = anonUserId_;
    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();
      anonUserId_ = s;
      return s;
    }
  }
  /**
   * string anon_user_id = 2 [json_name = "anonUserId"];
   * @return The bytes for anonUserId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAnonUserIdBytes() {
    java.lang.Object ref = anonUserId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      anonUserId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int RETAINED_USER_ID_FIELD_NUMBER = 3;
  private volatile java.lang.Object retainedUserId_;
  /**
   * string retained_user_id = 3 [json_name = "retainedUserId"];
   * @return The retainedUserId.
   */
  @java.lang.Override
  public java.lang.String getRetainedUserId() {
    java.lang.Object ref = retainedUserId_;
    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();
      retainedUserId_ = s;
      return s;
    }
  }
  /**
   * string retained_user_id = 3 [json_name = "retainedUserId"];
   * @return The bytes for retainedUserId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRetainedUserIdBytes() {
    java.lang.Object ref = retainedUserId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      retainedUserId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int EVENT_TIME_MILLIS_FIELD_NUMBER = 4;
  private long eventTimeMillis_;
  /**
   * uint64 event_time_millis = 4 [json_name = "eventTimeMillis"];
   * @return The eventTimeMillis.
   */
  @java.lang.Override
  public long getEventTimeMillis() {
    return eventTimeMillis_;
  }

  public static final int PROCESS_TIME_MILLIS_FIELD_NUMBER = 5;
  private long processTimeMillis_;
  /**
   * uint64 process_time_millis = 5 [json_name = "processTimeMillis"];
   * @return The processTimeMillis.
   */
  @java.lang.Override
  public long getProcessTimeMillis() {
    return processTimeMillis_;
  }

  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 (platformId_ != 0L) {
      output.writeUInt64(1, platformId_);
    }
    if (!getAnonUserIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, anonUserId_);
    }
    if (!getRetainedUserIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, retainedUserId_);
    }
    if (eventTimeMillis_ != 0L) {
      output.writeUInt64(4, eventTimeMillis_);
    }
    if (processTimeMillis_ != 0L) {
      output.writeUInt64(5, processTimeMillis_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (platformId_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(1, platformId_);
    }
    if (!getAnonUserIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, anonUserId_);
    }
    if (!getRetainedUserIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, retainedUserId_);
    }
    if (eventTimeMillis_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(4, eventTimeMillis_);
    }
    if (processTimeMillis_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(5, processTimeMillis_);
    }
    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.common.AnonUserRetainedUser)) {
      return super.equals(obj);
    }
    ai.promoted.proto.common.AnonUserRetainedUser other = (ai.promoted.proto.common.AnonUserRetainedUser) obj;

    if (getPlatformId()
        != other.getPlatformId()) return false;
    if (!getAnonUserId()
        .equals(other.getAnonUserId())) return false;
    if (!getRetainedUserId()
        .equals(other.getRetainedUserId())) return false;
    if (getEventTimeMillis()
        != other.getEventTimeMillis()) return false;
    if (getProcessTimeMillis()
        != other.getProcessTimeMillis()) return false;
    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) + PLATFORM_ID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getPlatformId());
    hash = (37 * hash) + ANON_USER_ID_FIELD_NUMBER;
    hash = (53 * hash) + getAnonUserId().hashCode();
    hash = (37 * hash) + RETAINED_USER_ID_FIELD_NUMBER;
    hash = (53 * hash) + getRetainedUserId().hashCode();
    hash = (37 * hash) + EVENT_TIME_MILLIS_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getEventTimeMillis());
    hash = (37 * hash) + PROCESS_TIME_MILLIS_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getProcessTimeMillis());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return ai.promoted.proto.common.RetainedUserOuterClass.internal_static_common_AnonUserRetainedUser_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              ai.promoted.proto.common.AnonUserRetainedUser.class, ai.promoted.proto.common.AnonUserRetainedUser.Builder.class);
    }

    // Construct using ai.promoted.proto.common.AnonUserRetainedUser.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();
      platformId_ = 0L;

      anonUserId_ = "";

      retainedUserId_ = "";

      eventTimeMillis_ = 0L;

      processTimeMillis_ = 0L;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return ai.promoted.proto.common.RetainedUserOuterClass.internal_static_common_AnonUserRetainedUser_descriptor;
    }

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

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

    @java.lang.Override
    public ai.promoted.proto.common.AnonUserRetainedUser buildPartial() {
      ai.promoted.proto.common.AnonUserRetainedUser result = new ai.promoted.proto.common.AnonUserRetainedUser(this);
      result.platformId_ = platformId_;
      result.anonUserId_ = anonUserId_;
      result.retainedUserId_ = retainedUserId_;
      result.eventTimeMillis_ = eventTimeMillis_;
      result.processTimeMillis_ = processTimeMillis_;
      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.common.AnonUserRetainedUser) {
        return mergeFrom((ai.promoted.proto.common.AnonUserRetainedUser)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(ai.promoted.proto.common.AnonUserRetainedUser other) {
      if (other == ai.promoted.proto.common.AnonUserRetainedUser.getDefaultInstance()) return this;
      if (other.getPlatformId() != 0L) {
        setPlatformId(other.getPlatformId());
      }
      if (!other.getAnonUserId().isEmpty()) {
        anonUserId_ = other.anonUserId_;
        onChanged();
      }
      if (!other.getRetainedUserId().isEmpty()) {
        retainedUserId_ = other.retainedUserId_;
        onChanged();
      }
      if (other.getEventTimeMillis() != 0L) {
        setEventTimeMillis(other.getEventTimeMillis());
      }
      if (other.getProcessTimeMillis() != 0L) {
        setProcessTimeMillis(other.getProcessTimeMillis());
      }
      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.common.AnonUserRetainedUser parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (ai.promoted.proto.common.AnonUserRetainedUser) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private long platformId_ ;
    /**
     * uint64 platform_id = 1 [json_name = "platformId"];
     * @return The platformId.
     */
    @java.lang.Override
    public long getPlatformId() {
      return platformId_;
    }
    /**
     * uint64 platform_id = 1 [json_name = "platformId"];
     * @param value The platformId to set.
     * @return This builder for chaining.
     */
    public Builder setPlatformId(long value) {
      
      platformId_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 platform_id = 1 [json_name = "platformId"];
     * @return This builder for chaining.
     */
    public Builder clearPlatformId() {
      
      platformId_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object anonUserId_ = "";
    /**
     * string anon_user_id = 2 [json_name = "anonUserId"];
     * @return The anonUserId.
     */
    public java.lang.String getAnonUserId() {
      java.lang.Object ref = anonUserId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        anonUserId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string anon_user_id = 2 [json_name = "anonUserId"];
     * @return The bytes for anonUserId.
     */
    public com.google.protobuf.ByteString
        getAnonUserIdBytes() {
      java.lang.Object ref = anonUserId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        anonUserId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string anon_user_id = 2 [json_name = "anonUserId"];
     * @param value The anonUserId to set.
     * @return This builder for chaining.
     */
    public Builder setAnonUserId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      anonUserId_ = value;
      onChanged();
      return this;
    }
    /**
     * string anon_user_id = 2 [json_name = "anonUserId"];
     * @return This builder for chaining.
     */
    public Builder clearAnonUserId() {
      
      anonUserId_ = getDefaultInstance().getAnonUserId();
      onChanged();
      return this;
    }
    /**
     * string anon_user_id = 2 [json_name = "anonUserId"];
     * @param value The bytes for anonUserId to set.
     * @return This builder for chaining.
     */
    public Builder setAnonUserIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      anonUserId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object retainedUserId_ = "";
    /**
     * string retained_user_id = 3 [json_name = "retainedUserId"];
     * @return The retainedUserId.
     */
    public java.lang.String getRetainedUserId() {
      java.lang.Object ref = retainedUserId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        retainedUserId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string retained_user_id = 3 [json_name = "retainedUserId"];
     * @return The bytes for retainedUserId.
     */
    public com.google.protobuf.ByteString
        getRetainedUserIdBytes() {
      java.lang.Object ref = retainedUserId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        retainedUserId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string retained_user_id = 3 [json_name = "retainedUserId"];
     * @param value The retainedUserId to set.
     * @return This builder for chaining.
     */
    public Builder setRetainedUserId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      retainedUserId_ = value;
      onChanged();
      return this;
    }
    /**
     * string retained_user_id = 3 [json_name = "retainedUserId"];
     * @return This builder for chaining.
     */
    public Builder clearRetainedUserId() {
      
      retainedUserId_ = getDefaultInstance().getRetainedUserId();
      onChanged();
      return this;
    }
    /**
     * string retained_user_id = 3 [json_name = "retainedUserId"];
     * @param value The bytes for retainedUserId to set.
     * @return This builder for chaining.
     */
    public Builder setRetainedUserIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      retainedUserId_ = value;
      onChanged();
      return this;
    }

    private long eventTimeMillis_ ;
    /**
     * uint64 event_time_millis = 4 [json_name = "eventTimeMillis"];
     * @return The eventTimeMillis.
     */
    @java.lang.Override
    public long getEventTimeMillis() {
      return eventTimeMillis_;
    }
    /**
     * uint64 event_time_millis = 4 [json_name = "eventTimeMillis"];
     * @param value The eventTimeMillis to set.
     * @return This builder for chaining.
     */
    public Builder setEventTimeMillis(long value) {
      
      eventTimeMillis_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 event_time_millis = 4 [json_name = "eventTimeMillis"];
     * @return This builder for chaining.
     */
    public Builder clearEventTimeMillis() {
      
      eventTimeMillis_ = 0L;
      onChanged();
      return this;
    }

    private long processTimeMillis_ ;
    /**
     * uint64 process_time_millis = 5 [json_name = "processTimeMillis"];
     * @return The processTimeMillis.
     */
    @java.lang.Override
    public long getProcessTimeMillis() {
      return processTimeMillis_;
    }
    /**
     * uint64 process_time_millis = 5 [json_name = "processTimeMillis"];
     * @param value The processTimeMillis to set.
     * @return This builder for chaining.
     */
    public Builder setProcessTimeMillis(long value) {
      
      processTimeMillis_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 process_time_millis = 5 [json_name = "processTimeMillis"];
     * @return This builder for chaining.
     */
    public Builder clearProcessTimeMillis() {
      
      processTimeMillis_ = 0L;
      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:common.AnonUserRetainedUser)
  }

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

  public static ai.promoted.proto.common.AnonUserRetainedUser getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public AnonUserRetainedUser parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new AnonUserRetainedUser(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.common.AnonUserRetainedUser getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy