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

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

package ai.promoted.proto.common;

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

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

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

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

            logUserId_ = s;
            break;
          }
          case 24: {

            isInternalUser_ = input.readBool();
            break;
          }
          case 32: {

            ignoreUsage_ = input.readBool();
            break;
          }
          case 42: {
            java.lang.String s = input.readStringRequireUtf8();

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

            retainedUserId_ = 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 ai.promoted.proto.common.CommonProto.internal_static_common_UserInfo_descriptor;
  }

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

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

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

  public static final int IS_INTERNAL_USER_FIELD_NUMBER = 3;
  private boolean isInternalUser_;
  /**
   * bool is_internal_user = 3 [json_name = "isInternalUser"];
   * @return The isInternalUser.
   */
  @java.lang.Override
  public boolean getIsInternalUser() {
    return isInternalUser_;
  }

  public static final int IGNORE_USAGE_FIELD_NUMBER = 4;
  private boolean ignoreUsage_;
  /**
   * bool ignore_usage = 4 [json_name = "ignoreUsage"];
   * @return The ignoreUsage.
   */
  @java.lang.Override
  public boolean getIgnoreUsage() {
    return ignoreUsage_;
  }

  public static final int ANON_USER_ID_FIELD_NUMBER = 5;
  private volatile java.lang.Object anonUserId_;
  /**
   * string anon_user_id = 5 [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 = 5 [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 = 7;
  private volatile java.lang.Object retainedUserId_;
  /**
   * string retained_user_id = 7 [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 = 7 [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;
    }
  }

  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 (!getUserIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userId_);
    }
    if (!getLogUserIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, logUserId_);
    }
    if (isInternalUser_ != false) {
      output.writeBool(3, isInternalUser_);
    }
    if (ignoreUsage_ != false) {
      output.writeBool(4, ignoreUsage_);
    }
    if (!getAnonUserIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, anonUserId_);
    }
    if (!getRetainedUserIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, retainedUserId_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getUserIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userId_);
    }
    if (!getLogUserIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, logUserId_);
    }
    if (isInternalUser_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(3, isInternalUser_);
    }
    if (ignoreUsage_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(4, ignoreUsage_);
    }
    if (!getAnonUserIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, anonUserId_);
    }
    if (!getRetainedUserIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, retainedUserId_);
    }
    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.UserInfo)) {
      return super.equals(obj);
    }
    ai.promoted.proto.common.UserInfo other = (ai.promoted.proto.common.UserInfo) obj;

    if (!getUserId()
        .equals(other.getUserId())) return false;
    if (!getLogUserId()
        .equals(other.getLogUserId())) return false;
    if (getIsInternalUser()
        != other.getIsInternalUser()) return false;
    if (getIgnoreUsage()
        != other.getIgnoreUsage()) return false;
    if (!getAnonUserId()
        .equals(other.getAnonUserId())) return false;
    if (!getRetainedUserId()
        .equals(other.getRetainedUserId())) 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) + USER_ID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId().hashCode();
    hash = (37 * hash) + LOG_USER_ID_FIELD_NUMBER;
    hash = (53 * hash) + getLogUserId().hashCode();
    hash = (37 * hash) + IS_INTERNAL_USER_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsInternalUser());
    hash = (37 * hash) + IGNORE_USAGE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIgnoreUsage());
    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 = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using ai.promoted.proto.common.UserInfo.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();
      userId_ = "";

      logUserId_ = "";

      isInternalUser_ = false;

      ignoreUsage_ = false;

      anonUserId_ = "";

      retainedUserId_ = "";

      return this;
    }

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

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

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

    @java.lang.Override
    public ai.promoted.proto.common.UserInfo buildPartial() {
      ai.promoted.proto.common.UserInfo result = new ai.promoted.proto.common.UserInfo(this);
      result.userId_ = userId_;
      result.logUserId_ = logUserId_;
      result.isInternalUser_ = isInternalUser_;
      result.ignoreUsage_ = ignoreUsage_;
      result.anonUserId_ = anonUserId_;
      result.retainedUserId_ = retainedUserId_;
      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.UserInfo) {
        return mergeFrom((ai.promoted.proto.common.UserInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(ai.promoted.proto.common.UserInfo other) {
      if (other == ai.promoted.proto.common.UserInfo.getDefaultInstance()) return this;
      if (!other.getUserId().isEmpty()) {
        userId_ = other.userId_;
        onChanged();
      }
      if (!other.getLogUserId().isEmpty()) {
        logUserId_ = other.logUserId_;
        onChanged();
      }
      if (other.getIsInternalUser() != false) {
        setIsInternalUser(other.getIsInternalUser());
      }
      if (other.getIgnoreUsage() != false) {
        setIgnoreUsage(other.getIgnoreUsage());
      }
      if (!other.getAnonUserId().isEmpty()) {
        anonUserId_ = other.anonUserId_;
        onChanged();
      }
      if (!other.getRetainedUserId().isEmpty()) {
        retainedUserId_ = other.retainedUserId_;
        onChanged();
      }
      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.UserInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (ai.promoted.proto.common.UserInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object userId_ = "";
    /**
     * string user_id = 1 [json_name = "userId"];
     * @return The userId.
     */
    public java.lang.String getUserId() {
      java.lang.Object ref = userId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        userId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string user_id = 1 [json_name = "userId"];
     * @return The bytes for userId.
     */
    public com.google.protobuf.ByteString
        getUserIdBytes() {
      java.lang.Object ref = userId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        userId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string user_id = 1 [json_name = "userId"];
     * @param value The userId to set.
     * @return This builder for chaining.
     */
    public Builder setUserId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * string user_id = 1 [json_name = "userId"];
     * @return This builder for chaining.
     */
    public Builder clearUserId() {
      
      userId_ = getDefaultInstance().getUserId();
      onChanged();
      return this;
    }
    /**
     * string user_id = 1 [json_name = "userId"];
     * @param value The bytes for userId to set.
     * @return This builder for chaining.
     */
    public Builder setUserIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      userId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object logUserId_ = "";
    /**
     * string log_user_id = 2 [json_name = "logUserId"];
     * @return The logUserId.
     */
    public java.lang.String getLogUserId() {
      java.lang.Object ref = logUserId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        logUserId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string log_user_id = 2 [json_name = "logUserId"];
     * @return The bytes for logUserId.
     */
    public com.google.protobuf.ByteString
        getLogUserIdBytes() {
      java.lang.Object ref = logUserId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        logUserId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string log_user_id = 2 [json_name = "logUserId"];
     * @param value The logUserId to set.
     * @return This builder for chaining.
     */
    public Builder setLogUserId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      logUserId_ = value;
      onChanged();
      return this;
    }
    /**
     * string log_user_id = 2 [json_name = "logUserId"];
     * @return This builder for chaining.
     */
    public Builder clearLogUserId() {
      
      logUserId_ = getDefaultInstance().getLogUserId();
      onChanged();
      return this;
    }
    /**
     * string log_user_id = 2 [json_name = "logUserId"];
     * @param value The bytes for logUserId to set.
     * @return This builder for chaining.
     */
    public Builder setLogUserIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      logUserId_ = value;
      onChanged();
      return this;
    }

    private boolean isInternalUser_ ;
    /**
     * bool is_internal_user = 3 [json_name = "isInternalUser"];
     * @return The isInternalUser.
     */
    @java.lang.Override
    public boolean getIsInternalUser() {
      return isInternalUser_;
    }
    /**
     * bool is_internal_user = 3 [json_name = "isInternalUser"];
     * @param value The isInternalUser to set.
     * @return This builder for chaining.
     */
    public Builder setIsInternalUser(boolean value) {
      
      isInternalUser_ = value;
      onChanged();
      return this;
    }
    /**
     * bool is_internal_user = 3 [json_name = "isInternalUser"];
     * @return This builder for chaining.
     */
    public Builder clearIsInternalUser() {
      
      isInternalUser_ = false;
      onChanged();
      return this;
    }

    private boolean ignoreUsage_ ;
    /**
     * bool ignore_usage = 4 [json_name = "ignoreUsage"];
     * @return The ignoreUsage.
     */
    @java.lang.Override
    public boolean getIgnoreUsage() {
      return ignoreUsage_;
    }
    /**
     * bool ignore_usage = 4 [json_name = "ignoreUsage"];
     * @param value The ignoreUsage to set.
     * @return This builder for chaining.
     */
    public Builder setIgnoreUsage(boolean value) {
      
      ignoreUsage_ = value;
      onChanged();
      return this;
    }
    /**
     * bool ignore_usage = 4 [json_name = "ignoreUsage"];
     * @return This builder for chaining.
     */
    public Builder clearIgnoreUsage() {
      
      ignoreUsage_ = false;
      onChanged();
      return this;
    }

    private java.lang.Object anonUserId_ = "";
    /**
     * string anon_user_id = 5 [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 = 5 [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 = 5 [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 = 5 [json_name = "anonUserId"];
     * @return This builder for chaining.
     */
    public Builder clearAnonUserId() {
      
      anonUserId_ = getDefaultInstance().getAnonUserId();
      onChanged();
      return this;
    }
    /**
     * string anon_user_id = 5 [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 = 7 [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 = 7 [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 = 7 [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 = 7 [json_name = "retainedUserId"];
     * @return This builder for chaining.
     */
    public Builder clearRetainedUserId() {
      
      retainedUserId_ = getDefaultInstance().getRetainedUserId();
      onChanged();
      return this;
    }
    /**
     * string retained_user_id = 7 [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;
    }
    @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.UserInfo)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy