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

main.java.com.streamlayer.users.UserMetadata 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.UserMetadata}
 */
public  final class UserMetadata extends
    com.google.protobuf.GeneratedMessageLite<
        UserMetadata, UserMetadata.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.users.UserMetadata)
    UserMetadataOrBuilder {
  private UserMetadata() {
    avatar_ = "";
    avatarBackgroundColour_ = "";
    timezone_ = "";
    firstName_ = "";
    lastName_ = "";
    roles_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
  }
  public static final int AVATAR_FIELD_NUMBER = 2;
  private java.lang.String avatar_;
  /**
   * string avatar = 2 [json_name = "avatar"];
   * @return The avatar.
   */
  @java.lang.Override
  public java.lang.String getAvatar() {
    return avatar_;
  }
  /**
   * string avatar = 2 [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 = 2 [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 = 2 [json_name = "avatar"];
   */
  private void clearAvatar() {

    avatar_ = getDefaultInstance().getAvatar();
  }
  /**
   * string avatar = 2 [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 AVATAR_BACKGROUND_COLOUR_FIELD_NUMBER = 3;
  private java.lang.String avatarBackgroundColour_;
  /**
   * string avatar_background_colour = 3 [json_name = "avatarBackgroundColour"];
   * @return The avatarBackgroundColour.
   */
  @java.lang.Override
  public java.lang.String getAvatarBackgroundColour() {
    return avatarBackgroundColour_;
  }
  /**
   * string avatar_background_colour = 3 [json_name = "avatarBackgroundColour"];
   * @return The bytes for avatarBackgroundColour.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAvatarBackgroundColourBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(avatarBackgroundColour_);
  }
  /**
   * string avatar_background_colour = 3 [json_name = "avatarBackgroundColour"];
   * @param value The avatarBackgroundColour to set.
   */
  private void setAvatarBackgroundColour(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    avatarBackgroundColour_ = value;
  }
  /**
   * string avatar_background_colour = 3 [json_name = "avatarBackgroundColour"];
   */
  private void clearAvatarBackgroundColour() {

    avatarBackgroundColour_ = getDefaultInstance().getAvatarBackgroundColour();
  }
  /**
   * string avatar_background_colour = 3 [json_name = "avatarBackgroundColour"];
   * @param value The bytes for avatarBackgroundColour to set.
   */
  private void setAvatarBackgroundColourBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    avatarBackgroundColour_ = value.toStringUtf8();

  }

  public static final int TIMEZONE_FIELD_NUMBER = 4;
  private java.lang.String timezone_;
  /**
   * string timezone = 4 [json_name = "timezone"];
   * @return The timezone.
   */
  @java.lang.Override
  public java.lang.String getTimezone() {
    return timezone_;
  }
  /**
   * string timezone = 4 [json_name = "timezone"];
   * @return The bytes for timezone.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTimezoneBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(timezone_);
  }
  /**
   * string timezone = 4 [json_name = "timezone"];
   * @param value The timezone to set.
   */
  private void setTimezone(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    timezone_ = value;
  }
  /**
   * string timezone = 4 [json_name = "timezone"];
   */
  private void clearTimezone() {

    timezone_ = getDefaultInstance().getTimezone();
  }
  /**
   * string timezone = 4 [json_name = "timezone"];
   * @param value The bytes for timezone to set.
   */
  private void setTimezoneBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    timezone_ = value.toStringUtf8();

  }

  public static final int NOTIFICATION_PREFERENCE_FIELD_NUMBER = 5;
  private int notificationPreference_;
  /**
   * .streamlayer.users.UserNotificationPreference notification_preference = 5 [json_name = "notificationPreference"];
   * @return The enum numeric value on the wire for notificationPreference.
   */
  @java.lang.Override
  public int getNotificationPreferenceValue() {
    return notificationPreference_;
  }
  /**
   * .streamlayer.users.UserNotificationPreference notification_preference = 5 [json_name = "notificationPreference"];
   * @return The notificationPreference.
   */
  @java.lang.Override
  public com.streamlayer.users.UserNotificationPreference getNotificationPreference() {
    com.streamlayer.users.UserNotificationPreference result = com.streamlayer.users.UserNotificationPreference.forNumber(notificationPreference_);
    return result == null ? com.streamlayer.users.UserNotificationPreference.UNRECOGNIZED : result;
  }
  /**
   * .streamlayer.users.UserNotificationPreference notification_preference = 5 [json_name = "notificationPreference"];
   * @param value The enum numeric value on the wire for notificationPreference to set.
   */
  private void setNotificationPreferenceValue(int value) {
      notificationPreference_ = value;
  }
  /**
   * .streamlayer.users.UserNotificationPreference notification_preference = 5 [json_name = "notificationPreference"];
   * @param value The notificationPreference to set.
   */
  private void setNotificationPreference(com.streamlayer.users.UserNotificationPreference value) {
    notificationPreference_ = value.getNumber();

  }
  /**
   * .streamlayer.users.UserNotificationPreference notification_preference = 5 [json_name = "notificationPreference"];
   */
  private void clearNotificationPreference() {

    notificationPreference_ = 0;
  }

  public static final int ACTIVE_FIELD_NUMBER = 6;
  private boolean active_;
  /**
   * bool active = 6 [json_name = "active"];
   * @return The active.
   */
  @java.lang.Override
  public boolean getActive() {
    return active_;
  }
  /**
   * bool active = 6 [json_name = "active"];
   * @param value The active to set.
   */
  private void setActive(boolean value) {
    
    active_ = value;
  }
  /**
   * bool active = 6 [json_name = "active"];
   */
  private void clearActive() {

    active_ = false;
  }

  public static final int FIRST_NAME_FIELD_NUMBER = 7;
  private java.lang.String firstName_;
  /**
   * string first_name = 7 [json_name = "firstName"];
   * @return The firstName.
   */
  @java.lang.Override
  public java.lang.String getFirstName() {
    return firstName_;
  }
  /**
   * string first_name = 7 [json_name = "firstName"];
   * @return The bytes for firstName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getFirstNameBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(firstName_);
  }
  /**
   * string first_name = 7 [json_name = "firstName"];
   * @param value The firstName to set.
   */
  private void setFirstName(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    firstName_ = value;
  }
  /**
   * string first_name = 7 [json_name = "firstName"];
   */
  private void clearFirstName() {

    firstName_ = getDefaultInstance().getFirstName();
  }
  /**
   * string first_name = 7 [json_name = "firstName"];
   * @param value The bytes for firstName to set.
   */
  private void setFirstNameBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    firstName_ = value.toStringUtf8();

  }

  public static final int LAST_NAME_FIELD_NUMBER = 8;
  private java.lang.String lastName_;
  /**
   * string last_name = 8 [json_name = "lastName"];
   * @return The lastName.
   */
  @java.lang.Override
  public java.lang.String getLastName() {
    return lastName_;
  }
  /**
   * string last_name = 8 [json_name = "lastName"];
   * @return The bytes for lastName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLastNameBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(lastName_);
  }
  /**
   * string last_name = 8 [json_name = "lastName"];
   * @param value The lastName to set.
   */
  private void setLastName(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    lastName_ = value;
  }
  /**
   * string last_name = 8 [json_name = "lastName"];
   */
  private void clearLastName() {

    lastName_ = getDefaultInstance().getLastName();
  }
  /**
   * string last_name = 8 [json_name = "lastName"];
   * @param value The bytes for lastName to set.
   */
  private void setLastNameBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    lastName_ = value.toStringUtf8();

  }

  public static final int ROLES_FIELD_NUMBER = 9;
  private com.google.protobuf.Internal.ProtobufList roles_;
  /**
   * repeated string roles = 9 [json_name = "roles"];
   * @return A list containing the roles.
   */
  @java.lang.Override
  public java.util.List getRolesList() {
    return roles_;
  }
  /**
   * repeated string roles = 9 [json_name = "roles"];
   * @return The count of roles.
   */
  @java.lang.Override
  public int getRolesCount() {
    return roles_.size();
  }
  /**
   * repeated string roles = 9 [json_name = "roles"];
   * @param index The index of the element to return.
   * @return The roles at the given index.
   */
  @java.lang.Override
  public java.lang.String getRoles(int index) {
    return roles_.get(index);
  }
  /**
   * repeated string roles = 9 [json_name = "roles"];
   * @param index The index of the value to return.
   * @return The bytes of the roles at the given index.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRolesBytes(int index) {
    return com.google.protobuf.ByteString.copyFromUtf8(
        roles_.get(index));
  }
  private void ensureRolesIsMutable() {
    com.google.protobuf.Internal.ProtobufList tmp =
        roles_;  if (!tmp.isModifiable()) {
      roles_ =
          com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
     }
  }
  /**
   * repeated string roles = 9 [json_name = "roles"];
   * @param index The index to set the value at.
   * @param value The roles to set.
   */
  private void setRoles(
      int index, java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  ensureRolesIsMutable();
    roles_.set(index, value);
  }
  /**
   * repeated string roles = 9 [json_name = "roles"];
   * @param value The roles to add.
   */
  private void addRoles(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  ensureRolesIsMutable();
    roles_.add(value);
  }
  /**
   * repeated string roles = 9 [json_name = "roles"];
   * @param values The roles to add.
   */
  private void addAllRoles(
      java.lang.Iterable values) {
    ensureRolesIsMutable();
    com.google.protobuf.AbstractMessageLite.addAll(
        values, roles_);
  }
  /**
   * repeated string roles = 9 [json_name = "roles"];
   */
  private void clearRoles() {
    roles_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
  }
  /**
   * repeated string roles = 9 [json_name = "roles"];
   * @param value The bytes of the roles to add.
   */
  private void addRolesBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    ensureRolesIsMutable();
    roles_.add(value.toStringUtf8());
  }

  public static com.streamlayer.users.UserMetadata parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.users.UserMetadata 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.UserMetadata 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.UserMetadata 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.UserMetadata parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.users.UserMetadata 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.UserMetadata parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.users.UserMetadata 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.UserMetadata parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.users.UserMetadata 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.UserMetadata parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.users.UserMetadata 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.UserMetadata prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

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


    /**
     * string avatar = 2 [json_name = "avatar"];
     * @return The avatar.
     */
    @java.lang.Override
    public java.lang.String getAvatar() {
      return instance.getAvatar();
    }
    /**
     * string avatar = 2 [json_name = "avatar"];
     * @return The bytes for avatar.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getAvatarBytes() {
      return instance.getAvatarBytes();
    }
    /**
     * string avatar = 2 [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 = 2 [json_name = "avatar"];
     * @return This builder for chaining.
     */
    public Builder clearAvatar() {
      copyOnWrite();
      instance.clearAvatar();
      return this;
    }
    /**
     * string avatar = 2 [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;
    }

    /**
     * string avatar_background_colour = 3 [json_name = "avatarBackgroundColour"];
     * @return The avatarBackgroundColour.
     */
    @java.lang.Override
    public java.lang.String getAvatarBackgroundColour() {
      return instance.getAvatarBackgroundColour();
    }
    /**
     * string avatar_background_colour = 3 [json_name = "avatarBackgroundColour"];
     * @return The bytes for avatarBackgroundColour.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getAvatarBackgroundColourBytes() {
      return instance.getAvatarBackgroundColourBytes();
    }
    /**
     * string avatar_background_colour = 3 [json_name = "avatarBackgroundColour"];
     * @param value The avatarBackgroundColour to set.
     * @return This builder for chaining.
     */
    public Builder setAvatarBackgroundColour(
        java.lang.String value) {
      copyOnWrite();
      instance.setAvatarBackgroundColour(value);
      return this;
    }
    /**
     * string avatar_background_colour = 3 [json_name = "avatarBackgroundColour"];
     * @return This builder for chaining.
     */
    public Builder clearAvatarBackgroundColour() {
      copyOnWrite();
      instance.clearAvatarBackgroundColour();
      return this;
    }
    /**
     * string avatar_background_colour = 3 [json_name = "avatarBackgroundColour"];
     * @param value The bytes for avatarBackgroundColour to set.
     * @return This builder for chaining.
     */
    public Builder setAvatarBackgroundColourBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setAvatarBackgroundColourBytes(value);
      return this;
    }

    /**
     * string timezone = 4 [json_name = "timezone"];
     * @return The timezone.
     */
    @java.lang.Override
    public java.lang.String getTimezone() {
      return instance.getTimezone();
    }
    /**
     * string timezone = 4 [json_name = "timezone"];
     * @return The bytes for timezone.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTimezoneBytes() {
      return instance.getTimezoneBytes();
    }
    /**
     * string timezone = 4 [json_name = "timezone"];
     * @param value The timezone to set.
     * @return This builder for chaining.
     */
    public Builder setTimezone(
        java.lang.String value) {
      copyOnWrite();
      instance.setTimezone(value);
      return this;
    }
    /**
     * string timezone = 4 [json_name = "timezone"];
     * @return This builder for chaining.
     */
    public Builder clearTimezone() {
      copyOnWrite();
      instance.clearTimezone();
      return this;
    }
    /**
     * string timezone = 4 [json_name = "timezone"];
     * @param value The bytes for timezone to set.
     * @return This builder for chaining.
     */
    public Builder setTimezoneBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setTimezoneBytes(value);
      return this;
    }

    /**
     * .streamlayer.users.UserNotificationPreference notification_preference = 5 [json_name = "notificationPreference"];
     * @return The enum numeric value on the wire for notificationPreference.
     */
    @java.lang.Override
    public int getNotificationPreferenceValue() {
      return instance.getNotificationPreferenceValue();
    }
    /**
     * .streamlayer.users.UserNotificationPreference notification_preference = 5 [json_name = "notificationPreference"];
     * @param value The notificationPreference to set.
     * @return This builder for chaining.
     */
    public Builder setNotificationPreferenceValue(int value) {
      copyOnWrite();
      instance.setNotificationPreferenceValue(value);
      return this;
    }
    /**
     * .streamlayer.users.UserNotificationPreference notification_preference = 5 [json_name = "notificationPreference"];
     * @return The notificationPreference.
     */
    @java.lang.Override
    public com.streamlayer.users.UserNotificationPreference getNotificationPreference() {
      return instance.getNotificationPreference();
    }
    /**
     * .streamlayer.users.UserNotificationPreference notification_preference = 5 [json_name = "notificationPreference"];
     * @param value The enum numeric value on the wire for notificationPreference to set.
     * @return This builder for chaining.
     */
    public Builder setNotificationPreference(com.streamlayer.users.UserNotificationPreference value) {
      copyOnWrite();
      instance.setNotificationPreference(value);
      return this;
    }
    /**
     * .streamlayer.users.UserNotificationPreference notification_preference = 5 [json_name = "notificationPreference"];
     * @return This builder for chaining.
     */
    public Builder clearNotificationPreference() {
      copyOnWrite();
      instance.clearNotificationPreference();
      return this;
    }

    /**
     * bool active = 6 [json_name = "active"];
     * @return The active.
     */
    @java.lang.Override
    public boolean getActive() {
      return instance.getActive();
    }
    /**
     * bool active = 6 [json_name = "active"];
     * @param value The active to set.
     * @return This builder for chaining.
     */
    public Builder setActive(boolean value) {
      copyOnWrite();
      instance.setActive(value);
      return this;
    }
    /**
     * bool active = 6 [json_name = "active"];
     * @return This builder for chaining.
     */
    public Builder clearActive() {
      copyOnWrite();
      instance.clearActive();
      return this;
    }

    /**
     * string first_name = 7 [json_name = "firstName"];
     * @return The firstName.
     */
    @java.lang.Override
    public java.lang.String getFirstName() {
      return instance.getFirstName();
    }
    /**
     * string first_name = 7 [json_name = "firstName"];
     * @return The bytes for firstName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getFirstNameBytes() {
      return instance.getFirstNameBytes();
    }
    /**
     * string first_name = 7 [json_name = "firstName"];
     * @param value The firstName to set.
     * @return This builder for chaining.
     */
    public Builder setFirstName(
        java.lang.String value) {
      copyOnWrite();
      instance.setFirstName(value);
      return this;
    }
    /**
     * string first_name = 7 [json_name = "firstName"];
     * @return This builder for chaining.
     */
    public Builder clearFirstName() {
      copyOnWrite();
      instance.clearFirstName();
      return this;
    }
    /**
     * string first_name = 7 [json_name = "firstName"];
     * @param value The bytes for firstName to set.
     * @return This builder for chaining.
     */
    public Builder setFirstNameBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setFirstNameBytes(value);
      return this;
    }

    /**
     * string last_name = 8 [json_name = "lastName"];
     * @return The lastName.
     */
    @java.lang.Override
    public java.lang.String getLastName() {
      return instance.getLastName();
    }
    /**
     * string last_name = 8 [json_name = "lastName"];
     * @return The bytes for lastName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getLastNameBytes() {
      return instance.getLastNameBytes();
    }
    /**
     * string last_name = 8 [json_name = "lastName"];
     * @param value The lastName to set.
     * @return This builder for chaining.
     */
    public Builder setLastName(
        java.lang.String value) {
      copyOnWrite();
      instance.setLastName(value);
      return this;
    }
    /**
     * string last_name = 8 [json_name = "lastName"];
     * @return This builder for chaining.
     */
    public Builder clearLastName() {
      copyOnWrite();
      instance.clearLastName();
      return this;
    }
    /**
     * string last_name = 8 [json_name = "lastName"];
     * @param value The bytes for lastName to set.
     * @return This builder for chaining.
     */
    public Builder setLastNameBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setLastNameBytes(value);
      return this;
    }

    /**
     * repeated string roles = 9 [json_name = "roles"];
     * @return A list containing the roles.
     */
    @java.lang.Override
    public java.util.List
        getRolesList() {
      return java.util.Collections.unmodifiableList(
          instance.getRolesList());
    }
    /**
     * repeated string roles = 9 [json_name = "roles"];
     * @return The count of roles.
     */
    @java.lang.Override
    public int getRolesCount() {
      return instance.getRolesCount();
    }
    /**
     * repeated string roles = 9 [json_name = "roles"];
     * @param index The index of the element to return.
     * @return The roles at the given index.
     */
    @java.lang.Override
    public java.lang.String getRoles(int index) {
      return instance.getRoles(index);
    }
    /**
     * repeated string roles = 9 [json_name = "roles"];
     * @param index The index of the value to return.
     * @return The bytes of the roles at the given index.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getRolesBytes(int index) {
      return instance.getRolesBytes(index);
    }
    /**
     * repeated string roles = 9 [json_name = "roles"];
     * @param index The index to set the value at.
     * @param value The roles to set.
     * @return This builder for chaining.
     */
    public Builder setRoles(
        int index, java.lang.String value) {
      copyOnWrite();
      instance.setRoles(index, value);
      return this;
    }
    /**
     * repeated string roles = 9 [json_name = "roles"];
     * @param value The roles to add.
     * @return This builder for chaining.
     */
    public Builder addRoles(
        java.lang.String value) {
      copyOnWrite();
      instance.addRoles(value);
      return this;
    }
    /**
     * repeated string roles = 9 [json_name = "roles"];
     * @param values The roles to add.
     * @return This builder for chaining.
     */
    public Builder addAllRoles(
        java.lang.Iterable values) {
      copyOnWrite();
      instance.addAllRoles(values);
      return this;
    }
    /**
     * repeated string roles = 9 [json_name = "roles"];
     * @return This builder for chaining.
     */
    public Builder clearRoles() {
      copyOnWrite();
      instance.clearRoles();
      return this;
    }
    /**
     * repeated string roles = 9 [json_name = "roles"];
     * @param value The bytes of the roles to add.
     * @return This builder for chaining.
     */
    public Builder addRolesBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.addRolesBytes(value);
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.users.UserMetadata)
  }
  @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.UserMetadata();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "avatar_",
            "avatarBackgroundColour_",
            "timezone_",
            "notificationPreference_",
            "active_",
            "firstName_",
            "lastName_",
            "roles_",
          };
          java.lang.String info =
              "\u0000\b\u0000\u0000\u0002\t\b\u0000\u0001\u0000\u0002\u0208\u0003\u0208\u0004\u0208" +
              "\u0005\f\u0006\u0007\u0007\u0208\b\u0208\t\u021a";
          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.UserMetadata.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.UserMetadata)
  private static final com.streamlayer.users.UserMetadata DEFAULT_INSTANCE;
  static {
    UserMetadata defaultInstance = new UserMetadata();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      UserMetadata.class, defaultInstance);
  }

  public static com.streamlayer.users.UserMetadata 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