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

main.java.com.streamlayer.users.UserAttributes Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: streamlayer/users/users_common.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.users;

/**
 * Protobuf type {@code streamlayer.users.UserAttributes}
 */
public  final class UserAttributes extends
    com.google.protobuf.GeneratedMessageLite<
        UserAttributes, UserAttributes.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.users.UserAttributes)
    UserAttributesOrBuilder {
  private UserAttributes() {
    username_ = "";
    name_ = "";
    alias_ = "";
    avatar_ = "";
    publicName_ = "";
  }
  private int bitField0_;
  public static final int USERNAME_FIELD_NUMBER = 1;
  private java.lang.String username_;
  /**
   * string username = 1 [json_name = "username"];
   * @return The username.
   */
  @java.lang.Override
  public java.lang.String getUsername() {
    return username_;
  }
  /**
   * string username = 1 [json_name = "username"];
   * @return The bytes for username.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getUsernameBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(username_);
  }
  /**
   * string username = 1 [json_name = "username"];
   * @param value The username to set.
   */
  private void setUsername(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    username_ = value;
  }
  /**
   * string username = 1 [json_name = "username"];
   */
  private void clearUsername() {

    username_ = getDefaultInstance().getUsername();
  }
  /**
   * string username = 1 [json_name = "username"];
   * @param value The bytes for username to set.
   */
  private void setUsernameBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    username_ = value.toStringUtf8();

  }

  public static final int NAME_FIELD_NUMBER = 2;
  private java.lang.String name_;
  /**
   * string name = 2 [json_name = "name"];
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    return name_;
  }
  /**
   * string name = 2 [json_name = "name"];
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getNameBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(name_);
  }
  /**
   * string name = 2 [json_name = "name"];
   * @param value The name to set.
   */
  private void setName(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    name_ = value;
  }
  /**
   * string name = 2 [json_name = "name"];
   */
  private void clearName() {

    name_ = getDefaultInstance().getName();
  }
  /**
   * string name = 2 [json_name = "name"];
   * @param value The bytes for name to set.
   */
  private void setNameBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    name_ = value.toStringUtf8();

  }

  public static final int ALIAS_FIELD_NUMBER = 3;
  private java.lang.String alias_;
  /**
   * string alias = 3 [json_name = "alias"];
   * @return The alias.
   */
  @java.lang.Override
  public java.lang.String getAlias() {
    return alias_;
  }
  /**
   * string alias = 3 [json_name = "alias"];
   * @return The bytes for alias.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAliasBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(alias_);
  }
  /**
   * string alias = 3 [json_name = "alias"];
   * @param value The alias to set.
   */
  private void setAlias(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    alias_ = value;
  }
  /**
   * string alias = 3 [json_name = "alias"];
   */
  private void clearAlias() {

    alias_ = getDefaultInstance().getAlias();
  }
  /**
   * string alias = 3 [json_name = "alias"];
   * @param value The bytes for alias to set.
   */
  private void setAliasBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    alias_ = value.toStringUtf8();

  }

  public static final int AVATAR_FIELD_NUMBER = 5;
  private java.lang.String avatar_;
  /**
   * string avatar = 5 [json_name = "avatar"];
   * @return The avatar.
   */
  @java.lang.Override
  public java.lang.String getAvatar() {
    return avatar_;
  }
  /**
   * string avatar = 5 [json_name = "avatar"];
   * @return The bytes for avatar.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAvatarBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(avatar_);
  }
  /**
   * string avatar = 5 [json_name = "avatar"];
   * @param value The avatar to set.
   */
  private void setAvatar(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    avatar_ = value;
  }
  /**
   * string avatar = 5 [json_name = "avatar"];
   */
  private void clearAvatar() {

    avatar_ = getDefaultInstance().getAvatar();
  }
  /**
   * string avatar = 5 [json_name = "avatar"];
   * @param value The bytes for avatar to set.
   */
  private void setAvatarBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    avatar_ = value.toStringUtf8();

  }

  public static final int PUBLIC_CHAT_FIELD_NUMBER = 6;
  private com.streamlayer.users.PublicChatUser publicChat_;
  /**
   * .streamlayer.users.PublicChatUser public_chat = 6 [json_name = "publicChat", deprecated = true];
   */
  @java.lang.Override
  @java.lang.Deprecated public boolean hasPublicChat() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .streamlayer.users.PublicChatUser public_chat = 6 [json_name = "publicChat", deprecated = true];
   */
  @java.lang.Override
  @java.lang.Deprecated public com.streamlayer.users.PublicChatUser getPublicChat() {
    return publicChat_ == null ? com.streamlayer.users.PublicChatUser.getDefaultInstance() : publicChat_;
  }
  /**
   * .streamlayer.users.PublicChatUser public_chat = 6 [json_name = "publicChat", deprecated = true];
   */
  private void setPublicChat(com.streamlayer.users.PublicChatUser value) {
    value.getClass();
  publicChat_ = value;
    bitField0_ |= 0x00000001;
    }
  /**
   * .streamlayer.users.PublicChatUser public_chat = 6 [json_name = "publicChat", deprecated = true];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergePublicChat(com.streamlayer.users.PublicChatUser value) {
    value.getClass();
  if (publicChat_ != null &&
        publicChat_ != com.streamlayer.users.PublicChatUser.getDefaultInstance()) {
      publicChat_ =
        com.streamlayer.users.PublicChatUser.newBuilder(publicChat_).mergeFrom(value).buildPartial();
    } else {
      publicChat_ = value;
    }
    bitField0_ |= 0x00000001;
  }
  /**
   * .streamlayer.users.PublicChatUser public_chat = 6 [json_name = "publicChat", deprecated = true];
   */
  private void clearPublicChat() {  publicChat_ = null;
    bitField0_ = (bitField0_ & ~0x00000001);
  }

  public static final int PUBLIC_NAME_FIELD_NUMBER = 7;
  private java.lang.String publicName_;
  /**
   * string public_name = 7 [json_name = "publicName"];
   * @return The publicName.
   */
  @java.lang.Override
  public java.lang.String getPublicName() {
    return publicName_;
  }
  /**
   * string public_name = 7 [json_name = "publicName"];
   * @return The bytes for publicName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPublicNameBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(publicName_);
  }
  /**
   * string public_name = 7 [json_name = "publicName"];
   * @param value The publicName to set.
   */
  private void setPublicName(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    publicName_ = value;
  }
  /**
   * string public_name = 7 [json_name = "publicName"];
   */
  private void clearPublicName() {

    publicName_ = getDefaultInstance().getPublicName();
  }
  /**
   * string public_name = 7 [json_name = "publicName"];
   * @param value The bytes for publicName to set.
   */
  private void setPublicNameBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    publicName_ = value.toStringUtf8();

  }

  public static com.streamlayer.users.UserAttributes parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.users.UserAttributes parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.users.UserAttributes parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.users.UserAttributes parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.users.UserAttributes parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.users.UserAttributes parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.users.UserAttributes parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.users.UserAttributes parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static com.streamlayer.users.UserAttributes parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.users.UserAttributes parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
  }
  public static com.streamlayer.users.UserAttributes parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.users.UserAttributes parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static Builder newBuilder() {
    return (Builder) DEFAULT_INSTANCE.createBuilder();
  }
  public static Builder newBuilder(com.streamlayer.users.UserAttributes prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

  /**
   * Protobuf type {@code streamlayer.users.UserAttributes}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageLite.Builder<
        com.streamlayer.users.UserAttributes, Builder> implements
      // @@protoc_insertion_point(builder_implements:streamlayer.users.UserAttributes)
      com.streamlayer.users.UserAttributesOrBuilder {
    // Construct using com.streamlayer.users.UserAttributes.newBuilder()
    private Builder() {
      super(DEFAULT_INSTANCE);
    }


    /**
     * string username = 1 [json_name = "username"];
     * @return The username.
     */
    @java.lang.Override
    public java.lang.String getUsername() {
      return instance.getUsername();
    }
    /**
     * string username = 1 [json_name = "username"];
     * @return The bytes for username.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getUsernameBytes() {
      return instance.getUsernameBytes();
    }
    /**
     * string username = 1 [json_name = "username"];
     * @param value The username to set.
     * @return This builder for chaining.
     */
    public Builder setUsername(
        java.lang.String value) {
      copyOnWrite();
      instance.setUsername(value);
      return this;
    }
    /**
     * string username = 1 [json_name = "username"];
     * @return This builder for chaining.
     */
    public Builder clearUsername() {
      copyOnWrite();
      instance.clearUsername();
      return this;
    }
    /**
     * string username = 1 [json_name = "username"];
     * @param value The bytes for username to set.
     * @return This builder for chaining.
     */
    public Builder setUsernameBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setUsernameBytes(value);
      return this;
    }

    /**
     * string name = 2 [json_name = "name"];
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      return instance.getName();
    }
    /**
     * string name = 2 [json_name = "name"];
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getNameBytes() {
      return instance.getNameBytes();
    }
    /**
     * string name = 2 [json_name = "name"];
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(
        java.lang.String value) {
      copyOnWrite();
      instance.setName(value);
      return this;
    }
    /**
     * string name = 2 [json_name = "name"];
     * @return This builder for chaining.
     */
    public Builder clearName() {
      copyOnWrite();
      instance.clearName();
      return this;
    }
    /**
     * string name = 2 [json_name = "name"];
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setNameBytes(value);
      return this;
    }

    /**
     * string alias = 3 [json_name = "alias"];
     * @return The alias.
     */
    @java.lang.Override
    public java.lang.String getAlias() {
      return instance.getAlias();
    }
    /**
     * string alias = 3 [json_name = "alias"];
     * @return The bytes for alias.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getAliasBytes() {
      return instance.getAliasBytes();
    }
    /**
     * string alias = 3 [json_name = "alias"];
     * @param value The alias to set.
     * @return This builder for chaining.
     */
    public Builder setAlias(
        java.lang.String value) {
      copyOnWrite();
      instance.setAlias(value);
      return this;
    }
    /**
     * string alias = 3 [json_name = "alias"];
     * @return This builder for chaining.
     */
    public Builder clearAlias() {
      copyOnWrite();
      instance.clearAlias();
      return this;
    }
    /**
     * string alias = 3 [json_name = "alias"];
     * @param value The bytes for alias to set.
     * @return This builder for chaining.
     */
    public Builder setAliasBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setAliasBytes(value);
      return this;
    }

    /**
     * string avatar = 5 [json_name = "avatar"];
     * @return The avatar.
     */
    @java.lang.Override
    public java.lang.String getAvatar() {
      return instance.getAvatar();
    }
    /**
     * string avatar = 5 [json_name = "avatar"];
     * @return The bytes for avatar.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getAvatarBytes() {
      return instance.getAvatarBytes();
    }
    /**
     * string avatar = 5 [json_name = "avatar"];
     * @param value The avatar to set.
     * @return This builder for chaining.
     */
    public Builder setAvatar(
        java.lang.String value) {
      copyOnWrite();
      instance.setAvatar(value);
      return this;
    }
    /**
     * string avatar = 5 [json_name = "avatar"];
     * @return This builder for chaining.
     */
    public Builder clearAvatar() {
      copyOnWrite();
      instance.clearAvatar();
      return this;
    }
    /**
     * string avatar = 5 [json_name = "avatar"];
     * @param value The bytes for avatar to set.
     * @return This builder for chaining.
     */
    public Builder setAvatarBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setAvatarBytes(value);
      return this;
    }

    /**
     * .streamlayer.users.PublicChatUser public_chat = 6 [json_name = "publicChat", deprecated = true];
     */
    @java.lang.Override
    @java.lang.Deprecated public boolean hasPublicChat() {
      return instance.hasPublicChat();
    }
    /**
     * .streamlayer.users.PublicChatUser public_chat = 6 [json_name = "publicChat", deprecated = true];
     */
    @java.lang.Override
    @java.lang.Deprecated public com.streamlayer.users.PublicChatUser getPublicChat() {
      return instance.getPublicChat();
    }
    /**
     * .streamlayer.users.PublicChatUser public_chat = 6 [json_name = "publicChat", deprecated = true];
     */
    @java.lang.Deprecated public Builder setPublicChat(com.streamlayer.users.PublicChatUser value) {
      copyOnWrite();
      instance.setPublicChat(value);
      return this;
      }
    /**
     * .streamlayer.users.PublicChatUser public_chat = 6 [json_name = "publicChat", deprecated = true];
     */
    @java.lang.Deprecated public Builder setPublicChat(
        com.streamlayer.users.PublicChatUser.Builder builderForValue) {
      copyOnWrite();
      instance.setPublicChat(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.users.PublicChatUser public_chat = 6 [json_name = "publicChat", deprecated = true];
     */
    @java.lang.Deprecated public Builder mergePublicChat(com.streamlayer.users.PublicChatUser value) {
      copyOnWrite();
      instance.mergePublicChat(value);
      return this;
    }
    /**
     * .streamlayer.users.PublicChatUser public_chat = 6 [json_name = "publicChat", deprecated = true];
     */
    @java.lang.Deprecated public Builder clearPublicChat() {  copyOnWrite();
      instance.clearPublicChat();
      return this;
    }

    /**
     * string public_name = 7 [json_name = "publicName"];
     * @return The publicName.
     */
    @java.lang.Override
    public java.lang.String getPublicName() {
      return instance.getPublicName();
    }
    /**
     * string public_name = 7 [json_name = "publicName"];
     * @return The bytes for publicName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getPublicNameBytes() {
      return instance.getPublicNameBytes();
    }
    /**
     * string public_name = 7 [json_name = "publicName"];
     * @param value The publicName to set.
     * @return This builder for chaining.
     */
    public Builder setPublicName(
        java.lang.String value) {
      copyOnWrite();
      instance.setPublicName(value);
      return this;
    }
    /**
     * string public_name = 7 [json_name = "publicName"];
     * @return This builder for chaining.
     */
    public Builder clearPublicName() {
      copyOnWrite();
      instance.clearPublicName();
      return this;
    }
    /**
     * string public_name = 7 [json_name = "publicName"];
     * @param value The bytes for publicName to set.
     * @return This builder for chaining.
     */
    public Builder setPublicNameBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setPublicNameBytes(value);
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.users.UserAttributes)
  }
  @java.lang.Override
  @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
  protected final java.lang.Object dynamicMethod(
      com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
      java.lang.Object arg0, java.lang.Object arg1) {
    switch (method) {
      case NEW_MUTABLE_INSTANCE: {
        return new com.streamlayer.users.UserAttributes();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "bitField0_",
            "username_",
            "name_",
            "alias_",
            "avatar_",
            "publicChat_",
            "publicName_",
          };
          java.lang.String info =
              "\u0000\u0006\u0000\u0001\u0001\u0007\u0006\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
              "\u0003\u0208\u0005\u0208\u0006\u1009\u0000\u0007\u0208";
          return newMessageInfo(DEFAULT_INSTANCE, info, objects);
      }
      // fall through
      case GET_DEFAULT_INSTANCE: {
        return DEFAULT_INSTANCE;
      }
      case GET_PARSER: {
        com.google.protobuf.Parser parser = PARSER;
        if (parser == null) {
          synchronized (com.streamlayer.users.UserAttributes.class) {
            parser = PARSER;
            if (parser == null) {
              parser =
                  new DefaultInstanceBasedParser(
                      DEFAULT_INSTANCE);
              PARSER = parser;
            }
          }
        }
        return parser;
    }
    case GET_MEMOIZED_IS_INITIALIZED: {
      return (byte) 1;
    }
    case SET_MEMOIZED_IS_INITIALIZED: {
      return null;
    }
    }
    throw new UnsupportedOperationException();
  }


  // @@protoc_insertion_point(class_scope:streamlayer.users.UserAttributes)
  private static final com.streamlayer.users.UserAttributes DEFAULT_INSTANCE;
  static {
    UserAttributes defaultInstance = new UserAttributes();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      UserAttributes.class, defaultInstance);
  }

  public static com.streamlayer.users.UserAttributes getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static volatile com.google.protobuf.Parser PARSER;

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy