main.java.com.streamlayer.users.admin.UpdateRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: streamlayer/users/admin/admin_users.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.users.admin;
/**
* Protobuf type {@code streamlayer.users.admin.UpdateRequest}
*/
public final class UpdateRequest extends
com.google.protobuf.GeneratedMessageLite<
UpdateRequest, UpdateRequest.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.users.admin.UpdateRequest)
UpdateRequestOrBuilder {
private UpdateRequest() {
username_ = "";
setRoles_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
private int nameCase_ = 0;
private java.lang.Object name_;
public enum NameCase {
SET_NAME(2),
DEL_NAME(3),
NAME_NOT_SET(0);
private final int value;
private NameCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NameCase valueOf(int value) {
return forNumber(value);
}
public static NameCase forNumber(int value) {
switch (value) {
case 2: return SET_NAME;
case 3: return DEL_NAME;
case 0: return NAME_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
@java.lang.Override
public NameCase
getNameCase() {
return NameCase.forNumber(
nameCase_);
}
private void clearName() {
nameCase_ = 0;
name_ = null;
}
private int avatarCase_ = 0;
private java.lang.Object avatar_;
public enum AvatarCase {
SET_AVATAR(4),
DEL_AVATAR(5),
AVATAR_NOT_SET(0);
private final int value;
private AvatarCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AvatarCase valueOf(int value) {
return forNumber(value);
}
public static AvatarCase forNumber(int value) {
switch (value) {
case 4: return SET_AVATAR;
case 5: return DEL_AVATAR;
case 0: return AVATAR_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
@java.lang.Override
public AvatarCase
getAvatarCase() {
return AvatarCase.forNumber(
avatarCase_);
}
private void clearAvatar() {
avatarCase_ = 0;
avatar_ = null;
}
private int avatarBackgroundColourCase_ = 0;
private java.lang.Object avatarBackgroundColour_;
public enum AvatarBackgroundColourCase {
SET_AVATAR_BACKGROUND_COLOUR(6),
DEL_AVATAR_BACKGROUND_COLOUR(7),
AVATARBACKGROUNDCOLOUR_NOT_SET(0);
private final int value;
private AvatarBackgroundColourCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AvatarBackgroundColourCase valueOf(int value) {
return forNumber(value);
}
public static AvatarBackgroundColourCase forNumber(int value) {
switch (value) {
case 6: return SET_AVATAR_BACKGROUND_COLOUR;
case 7: return DEL_AVATAR_BACKGROUND_COLOUR;
case 0: return AVATARBACKGROUNDCOLOUR_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
@java.lang.Override
public AvatarBackgroundColourCase
getAvatarBackgroundColourCase() {
return AvatarBackgroundColourCase.forNumber(
avatarBackgroundColourCase_);
}
private void clearAvatarBackgroundColour() {
avatarBackgroundColourCase_ = 0;
avatarBackgroundColour_ = null;
}
private int timezoneCase_ = 0;
private java.lang.Object timezone_;
public enum TimezoneCase {
SET_TIMEZONE(8),
DEL_TIMEZONE(9),
TIMEZONE_NOT_SET(0);
private final int value;
private TimezoneCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TimezoneCase valueOf(int value) {
return forNumber(value);
}
public static TimezoneCase forNumber(int value) {
switch (value) {
case 8: return SET_TIMEZONE;
case 9: return DEL_TIMEZONE;
case 0: return TIMEZONE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
@java.lang.Override
public TimezoneCase
getTimezoneCase() {
return TimezoneCase.forNumber(
timezoneCase_);
}
private void clearTimezone() {
timezoneCase_ = 0;
timezone_ = null;
}
private int notificationPreferenceCase_ = 0;
private java.lang.Object notificationPreference_;
public enum NotificationPreferenceCase {
SET_NOTIFICATION_PREFERENCE(10),
DEL_NOTIFICATION_PREFERENCE(11),
NOTIFICATIONPREFERENCE_NOT_SET(0);
private final int value;
private NotificationPreferenceCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NotificationPreferenceCase valueOf(int value) {
return forNumber(value);
}
public static NotificationPreferenceCase forNumber(int value) {
switch (value) {
case 10: return SET_NOTIFICATION_PREFERENCE;
case 11: return DEL_NOTIFICATION_PREFERENCE;
case 0: return NOTIFICATIONPREFERENCE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
@java.lang.Override
public NotificationPreferenceCase
getNotificationPreferenceCase() {
return NotificationPreferenceCase.forNumber(
notificationPreferenceCase_);
}
private void clearNotificationPreference() {
notificationPreferenceCase_ = 0;
notificationPreference_ = null;
}
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 SET_NAME_FIELD_NUMBER = 2;
/**
* string set_name = 2 [json_name = "setName"];
* @return Whether the setName field is set.
*/
@java.lang.Override
public boolean hasSetName() {
return nameCase_ == 2;
}
/**
* string set_name = 2 [json_name = "setName"];
* @return The setName.
*/
@java.lang.Override
public java.lang.String getSetName() {
java.lang.String ref = "";
if (nameCase_ == 2) {
ref = (java.lang.String) name_;
}
return ref;
}
/**
* string set_name = 2 [json_name = "setName"];
* @return The bytes for setName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSetNameBytes() {
java.lang.String ref = "";
if (nameCase_ == 2) {
ref = (java.lang.String) name_;
}
return com.google.protobuf.ByteString.copyFromUtf8(ref);
}
/**
* string set_name = 2 [json_name = "setName"];
* @param value The setName to set.
*/
private void setSetName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
nameCase_ = 2;
name_ = value;
}
/**
* string set_name = 2 [json_name = "setName"];
*/
private void clearSetName() {
if (nameCase_ == 2) {
nameCase_ = 0;
name_ = null;
}
}
/**
* string set_name = 2 [json_name = "setName"];
* @param value The bytes for setName to set.
*/
private void setSetNameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
name_ = value.toStringUtf8();
nameCase_ = 2;
}
public static final int DEL_NAME_FIELD_NUMBER = 3;
/**
* string del_name = 3 [json_name = "delName"];
* @return Whether the delName field is set.
*/
@java.lang.Override
public boolean hasDelName() {
return nameCase_ == 3;
}
/**
* string del_name = 3 [json_name = "delName"];
* @return The delName.
*/
@java.lang.Override
public java.lang.String getDelName() {
java.lang.String ref = "";
if (nameCase_ == 3) {
ref = (java.lang.String) name_;
}
return ref;
}
/**
* string del_name = 3 [json_name = "delName"];
* @return The bytes for delName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDelNameBytes() {
java.lang.String ref = "";
if (nameCase_ == 3) {
ref = (java.lang.String) name_;
}
return com.google.protobuf.ByteString.copyFromUtf8(ref);
}
/**
* string del_name = 3 [json_name = "delName"];
* @param value The delName to set.
*/
private void setDelName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
nameCase_ = 3;
name_ = value;
}
/**
* string del_name = 3 [json_name = "delName"];
*/
private void clearDelName() {
if (nameCase_ == 3) {
nameCase_ = 0;
name_ = null;
}
}
/**
* string del_name = 3 [json_name = "delName"];
* @param value The bytes for delName to set.
*/
private void setDelNameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
name_ = value.toStringUtf8();
nameCase_ = 3;
}
public static final int SET_AVATAR_FIELD_NUMBER = 4;
/**
* string set_avatar = 4 [json_name = "setAvatar"];
* @return Whether the setAvatar field is set.
*/
@java.lang.Override
public boolean hasSetAvatar() {
return avatarCase_ == 4;
}
/**
* string set_avatar = 4 [json_name = "setAvatar"];
* @return The setAvatar.
*/
@java.lang.Override
public java.lang.String getSetAvatar() {
java.lang.String ref = "";
if (avatarCase_ == 4) {
ref = (java.lang.String) avatar_;
}
return ref;
}
/**
* string set_avatar = 4 [json_name = "setAvatar"];
* @return The bytes for setAvatar.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSetAvatarBytes() {
java.lang.String ref = "";
if (avatarCase_ == 4) {
ref = (java.lang.String) avatar_;
}
return com.google.protobuf.ByteString.copyFromUtf8(ref);
}
/**
* string set_avatar = 4 [json_name = "setAvatar"];
* @param value The setAvatar to set.
*/
private void setSetAvatar(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
avatarCase_ = 4;
avatar_ = value;
}
/**
* string set_avatar = 4 [json_name = "setAvatar"];
*/
private void clearSetAvatar() {
if (avatarCase_ == 4) {
avatarCase_ = 0;
avatar_ = null;
}
}
/**
* string set_avatar = 4 [json_name = "setAvatar"];
* @param value The bytes for setAvatar to set.
*/
private void setSetAvatarBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
avatar_ = value.toStringUtf8();
avatarCase_ = 4;
}
public static final int DEL_AVATAR_FIELD_NUMBER = 5;
/**
* string del_avatar = 5 [json_name = "delAvatar"];
* @return Whether the delAvatar field is set.
*/
@java.lang.Override
public boolean hasDelAvatar() {
return avatarCase_ == 5;
}
/**
* string del_avatar = 5 [json_name = "delAvatar"];
* @return The delAvatar.
*/
@java.lang.Override
public java.lang.String getDelAvatar() {
java.lang.String ref = "";
if (avatarCase_ == 5) {
ref = (java.lang.String) avatar_;
}
return ref;
}
/**
* string del_avatar = 5 [json_name = "delAvatar"];
* @return The bytes for delAvatar.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDelAvatarBytes() {
java.lang.String ref = "";
if (avatarCase_ == 5) {
ref = (java.lang.String) avatar_;
}
return com.google.protobuf.ByteString.copyFromUtf8(ref);
}
/**
* string del_avatar = 5 [json_name = "delAvatar"];
* @param value The delAvatar to set.
*/
private void setDelAvatar(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
avatarCase_ = 5;
avatar_ = value;
}
/**
* string del_avatar = 5 [json_name = "delAvatar"];
*/
private void clearDelAvatar() {
if (avatarCase_ == 5) {
avatarCase_ = 0;
avatar_ = null;
}
}
/**
* string del_avatar = 5 [json_name = "delAvatar"];
* @param value The bytes for delAvatar to set.
*/
private void setDelAvatarBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
avatar_ = value.toStringUtf8();
avatarCase_ = 5;
}
public static final int SET_AVATAR_BACKGROUND_COLOUR_FIELD_NUMBER = 6;
/**
* string set_avatar_background_colour = 6 [json_name = "setAvatarBackgroundColour"];
* @return Whether the setAvatarBackgroundColour field is set.
*/
@java.lang.Override
public boolean hasSetAvatarBackgroundColour() {
return avatarBackgroundColourCase_ == 6;
}
/**
* string set_avatar_background_colour = 6 [json_name = "setAvatarBackgroundColour"];
* @return The setAvatarBackgroundColour.
*/
@java.lang.Override
public java.lang.String getSetAvatarBackgroundColour() {
java.lang.String ref = "";
if (avatarBackgroundColourCase_ == 6) {
ref = (java.lang.String) avatarBackgroundColour_;
}
return ref;
}
/**
* string set_avatar_background_colour = 6 [json_name = "setAvatarBackgroundColour"];
* @return The bytes for setAvatarBackgroundColour.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSetAvatarBackgroundColourBytes() {
java.lang.String ref = "";
if (avatarBackgroundColourCase_ == 6) {
ref = (java.lang.String) avatarBackgroundColour_;
}
return com.google.protobuf.ByteString.copyFromUtf8(ref);
}
/**
* string set_avatar_background_colour = 6 [json_name = "setAvatarBackgroundColour"];
* @param value The setAvatarBackgroundColour to set.
*/
private void setSetAvatarBackgroundColour(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
avatarBackgroundColourCase_ = 6;
avatarBackgroundColour_ = value;
}
/**
* string set_avatar_background_colour = 6 [json_name = "setAvatarBackgroundColour"];
*/
private void clearSetAvatarBackgroundColour() {
if (avatarBackgroundColourCase_ == 6) {
avatarBackgroundColourCase_ = 0;
avatarBackgroundColour_ = null;
}
}
/**
* string set_avatar_background_colour = 6 [json_name = "setAvatarBackgroundColour"];
* @param value The bytes for setAvatarBackgroundColour to set.
*/
private void setSetAvatarBackgroundColourBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
avatarBackgroundColour_ = value.toStringUtf8();
avatarBackgroundColourCase_ = 6;
}
public static final int DEL_AVATAR_BACKGROUND_COLOUR_FIELD_NUMBER = 7;
/**
* string del_avatar_background_colour = 7 [json_name = "delAvatarBackgroundColour"];
* @return Whether the delAvatarBackgroundColour field is set.
*/
@java.lang.Override
public boolean hasDelAvatarBackgroundColour() {
return avatarBackgroundColourCase_ == 7;
}
/**
* string del_avatar_background_colour = 7 [json_name = "delAvatarBackgroundColour"];
* @return The delAvatarBackgroundColour.
*/
@java.lang.Override
public java.lang.String getDelAvatarBackgroundColour() {
java.lang.String ref = "";
if (avatarBackgroundColourCase_ == 7) {
ref = (java.lang.String) avatarBackgroundColour_;
}
return ref;
}
/**
* string del_avatar_background_colour = 7 [json_name = "delAvatarBackgroundColour"];
* @return The bytes for delAvatarBackgroundColour.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDelAvatarBackgroundColourBytes() {
java.lang.String ref = "";
if (avatarBackgroundColourCase_ == 7) {
ref = (java.lang.String) avatarBackgroundColour_;
}
return com.google.protobuf.ByteString.copyFromUtf8(ref);
}
/**
* string del_avatar_background_colour = 7 [json_name = "delAvatarBackgroundColour"];
* @param value The delAvatarBackgroundColour to set.
*/
private void setDelAvatarBackgroundColour(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
avatarBackgroundColourCase_ = 7;
avatarBackgroundColour_ = value;
}
/**
* string del_avatar_background_colour = 7 [json_name = "delAvatarBackgroundColour"];
*/
private void clearDelAvatarBackgroundColour() {
if (avatarBackgroundColourCase_ == 7) {
avatarBackgroundColourCase_ = 0;
avatarBackgroundColour_ = null;
}
}
/**
* string del_avatar_background_colour = 7 [json_name = "delAvatarBackgroundColour"];
* @param value The bytes for delAvatarBackgroundColour to set.
*/
private void setDelAvatarBackgroundColourBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
avatarBackgroundColour_ = value.toStringUtf8();
avatarBackgroundColourCase_ = 7;
}
public static final int SET_TIMEZONE_FIELD_NUMBER = 8;
/**
* string set_timezone = 8 [json_name = "setTimezone"];
* @return Whether the setTimezone field is set.
*/
@java.lang.Override
public boolean hasSetTimezone() {
return timezoneCase_ == 8;
}
/**
* string set_timezone = 8 [json_name = "setTimezone"];
* @return The setTimezone.
*/
@java.lang.Override
public java.lang.String getSetTimezone() {
java.lang.String ref = "";
if (timezoneCase_ == 8) {
ref = (java.lang.String) timezone_;
}
return ref;
}
/**
* string set_timezone = 8 [json_name = "setTimezone"];
* @return The bytes for setTimezone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSetTimezoneBytes() {
java.lang.String ref = "";
if (timezoneCase_ == 8) {
ref = (java.lang.String) timezone_;
}
return com.google.protobuf.ByteString.copyFromUtf8(ref);
}
/**
* string set_timezone = 8 [json_name = "setTimezone"];
* @param value The setTimezone to set.
*/
private void setSetTimezone(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
timezoneCase_ = 8;
timezone_ = value;
}
/**
* string set_timezone = 8 [json_name = "setTimezone"];
*/
private void clearSetTimezone() {
if (timezoneCase_ == 8) {
timezoneCase_ = 0;
timezone_ = null;
}
}
/**
* string set_timezone = 8 [json_name = "setTimezone"];
* @param value The bytes for setTimezone to set.
*/
private void setSetTimezoneBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
timezone_ = value.toStringUtf8();
timezoneCase_ = 8;
}
public static final int DEL_TIMEZONE_FIELD_NUMBER = 9;
/**
* string del_timezone = 9 [json_name = "delTimezone"];
* @return Whether the delTimezone field is set.
*/
@java.lang.Override
public boolean hasDelTimezone() {
return timezoneCase_ == 9;
}
/**
* string del_timezone = 9 [json_name = "delTimezone"];
* @return The delTimezone.
*/
@java.lang.Override
public java.lang.String getDelTimezone() {
java.lang.String ref = "";
if (timezoneCase_ == 9) {
ref = (java.lang.String) timezone_;
}
return ref;
}
/**
* string del_timezone = 9 [json_name = "delTimezone"];
* @return The bytes for delTimezone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDelTimezoneBytes() {
java.lang.String ref = "";
if (timezoneCase_ == 9) {
ref = (java.lang.String) timezone_;
}
return com.google.protobuf.ByteString.copyFromUtf8(ref);
}
/**
* string del_timezone = 9 [json_name = "delTimezone"];
* @param value The delTimezone to set.
*/
private void setDelTimezone(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
timezoneCase_ = 9;
timezone_ = value;
}
/**
* string del_timezone = 9 [json_name = "delTimezone"];
*/
private void clearDelTimezone() {
if (timezoneCase_ == 9) {
timezoneCase_ = 0;
timezone_ = null;
}
}
/**
* string del_timezone = 9 [json_name = "delTimezone"];
* @param value The bytes for delTimezone to set.
*/
private void setDelTimezoneBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
timezone_ = value.toStringUtf8();
timezoneCase_ = 9;
}
public static final int SET_NOTIFICATION_PREFERENCE_FIELD_NUMBER = 10;
/**
* .streamlayer.users.UserNotificationPreference set_notification_preference = 10 [json_name = "setNotificationPreference"];
* @return Whether the setNotificationPreference field is set.
*/
@java.lang.Override
public boolean hasSetNotificationPreference() {
return notificationPreferenceCase_ == 10;
}
/**
* .streamlayer.users.UserNotificationPreference set_notification_preference = 10 [json_name = "setNotificationPreference"];
* @return The enum numeric value on the wire for setNotificationPreference.
*/
@java.lang.Override
public int getSetNotificationPreferenceValue() {
if (notificationPreferenceCase_ == 10) {
return (java.lang.Integer) notificationPreference_;
}
return 0;
}
/**
* .streamlayer.users.UserNotificationPreference set_notification_preference = 10 [json_name = "setNotificationPreference"];
* @return The setNotificationPreference.
*/
@java.lang.Override
public com.streamlayer.users.UserNotificationPreference getSetNotificationPreference() {
if (notificationPreferenceCase_ == 10) {
com.streamlayer.users.UserNotificationPreference result = com.streamlayer.users.UserNotificationPreference.forNumber((java.lang.Integer) notificationPreference_);
return result == null ? com.streamlayer.users.UserNotificationPreference.UNRECOGNIZED : result;
}
return com.streamlayer.users.UserNotificationPreference.USER_NOTIFICATION_PREFERENCE_UNSET;
}
/**
* .streamlayer.users.UserNotificationPreference set_notification_preference = 10 [json_name = "setNotificationPreference"];
* @param value The enum numeric value on the wire for setNotificationPreference to set.
*/
private void setSetNotificationPreferenceValue(int value) {
notificationPreferenceCase_ = 10;
notificationPreference_ = value;
}
/**
* .streamlayer.users.UserNotificationPreference set_notification_preference = 10 [json_name = "setNotificationPreference"];
* @param value The setNotificationPreference to set.
*/
private void setSetNotificationPreference(com.streamlayer.users.UserNotificationPreference value) {
notificationPreference_ = value.getNumber();
notificationPreferenceCase_ = 10;
}
/**
* .streamlayer.users.UserNotificationPreference set_notification_preference = 10 [json_name = "setNotificationPreference"];
*/
private void clearSetNotificationPreference() {
if (notificationPreferenceCase_ == 10) {
notificationPreferenceCase_ = 0;
notificationPreference_ = null;
}
}
public static final int DEL_NOTIFICATION_PREFERENCE_FIELD_NUMBER = 11;
/**
* .streamlayer.users.UserNotificationPreference del_notification_preference = 11 [json_name = "delNotificationPreference"];
* @return Whether the delNotificationPreference field is set.
*/
@java.lang.Override
public boolean hasDelNotificationPreference() {
return notificationPreferenceCase_ == 11;
}
/**
* .streamlayer.users.UserNotificationPreference del_notification_preference = 11 [json_name = "delNotificationPreference"];
* @return The enum numeric value on the wire for delNotificationPreference.
*/
@java.lang.Override
public int getDelNotificationPreferenceValue() {
if (notificationPreferenceCase_ == 11) {
return (java.lang.Integer) notificationPreference_;
}
return 0;
}
/**
* .streamlayer.users.UserNotificationPreference del_notification_preference = 11 [json_name = "delNotificationPreference"];
* @return The delNotificationPreference.
*/
@java.lang.Override
public com.streamlayer.users.UserNotificationPreference getDelNotificationPreference() {
if (notificationPreferenceCase_ == 11) {
com.streamlayer.users.UserNotificationPreference result = com.streamlayer.users.UserNotificationPreference.forNumber((java.lang.Integer) notificationPreference_);
return result == null ? com.streamlayer.users.UserNotificationPreference.UNRECOGNIZED : result;
}
return com.streamlayer.users.UserNotificationPreference.USER_NOTIFICATION_PREFERENCE_UNSET;
}
/**
* .streamlayer.users.UserNotificationPreference del_notification_preference = 11 [json_name = "delNotificationPreference"];
* @param value The enum numeric value on the wire for delNotificationPreference to set.
*/
private void setDelNotificationPreferenceValue(int value) {
notificationPreferenceCase_ = 11;
notificationPreference_ = value;
}
/**
* .streamlayer.users.UserNotificationPreference del_notification_preference = 11 [json_name = "delNotificationPreference"];
* @param value The delNotificationPreference to set.
*/
private void setDelNotificationPreference(com.streamlayer.users.UserNotificationPreference value) {
notificationPreference_ = value.getNumber();
notificationPreferenceCase_ = 11;
}
/**
* .streamlayer.users.UserNotificationPreference del_notification_preference = 11 [json_name = "delNotificationPreference"];
*/
private void clearDelNotificationPreference() {
if (notificationPreferenceCase_ == 11) {
notificationPreferenceCase_ = 0;
notificationPreference_ = null;
}
}
public static final int SET_ROLES_FIELD_NUMBER = 12;
private com.google.protobuf.Internal.ProtobufList setRoles_;
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @return A list containing the setRoles.
*/
@java.lang.Override
public java.util.List getSetRolesList() {
return setRoles_;
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @return The count of setRoles.
*/
@java.lang.Override
public int getSetRolesCount() {
return setRoles_.size();
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @param index The index of the element to return.
* @return The setRoles at the given index.
*/
@java.lang.Override
public java.lang.String getSetRoles(int index) {
return setRoles_.get(index);
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @param index The index of the value to return.
* @return The bytes of the setRoles at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSetRolesBytes(int index) {
return com.google.protobuf.ByteString.copyFromUtf8(
setRoles_.get(index));
}
private void ensureSetRolesIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp =
setRoles_; if (!tmp.isModifiable()) {
setRoles_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @param index The index to set the value at.
* @param value The setRoles to set.
*/
private void setSetRoles(
int index, java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
ensureSetRolesIsMutable();
setRoles_.set(index, value);
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @param value The setRoles to add.
*/
private void addSetRoles(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
ensureSetRolesIsMutable();
setRoles_.add(value);
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @param values The setRoles to add.
*/
private void addAllSetRoles(
java.lang.Iterable values) {
ensureSetRolesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, setRoles_);
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
*/
private void clearSetRoles() {
setRoles_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @param value The bytes of the setRoles to add.
*/
private void addSetRolesBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureSetRolesIsMutable();
setRoles_.add(value.toStringUtf8());
}
public static com.streamlayer.users.admin.UpdateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.users.admin.UpdateRequest 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.admin.UpdateRequest 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.admin.UpdateRequest 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.admin.UpdateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.users.admin.UpdateRequest 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.admin.UpdateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.users.admin.UpdateRequest 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.admin.UpdateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.users.admin.UpdateRequest 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.admin.UpdateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.users.admin.UpdateRequest 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.admin.UpdateRequest prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.users.admin.UpdateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.users.admin.UpdateRequest, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.users.admin.UpdateRequest)
com.streamlayer.users.admin.UpdateRequestOrBuilder {
// Construct using com.streamlayer.users.admin.UpdateRequest.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
@java.lang.Override
public NameCase
getNameCase() {
return instance.getNameCase();
}
public Builder clearName() {
copyOnWrite();
instance.clearName();
return this;
}
@java.lang.Override
public AvatarCase
getAvatarCase() {
return instance.getAvatarCase();
}
public Builder clearAvatar() {
copyOnWrite();
instance.clearAvatar();
return this;
}
@java.lang.Override
public AvatarBackgroundColourCase
getAvatarBackgroundColourCase() {
return instance.getAvatarBackgroundColourCase();
}
public Builder clearAvatarBackgroundColour() {
copyOnWrite();
instance.clearAvatarBackgroundColour();
return this;
}
@java.lang.Override
public TimezoneCase
getTimezoneCase() {
return instance.getTimezoneCase();
}
public Builder clearTimezone() {
copyOnWrite();
instance.clearTimezone();
return this;
}
@java.lang.Override
public NotificationPreferenceCase
getNotificationPreferenceCase() {
return instance.getNotificationPreferenceCase();
}
public Builder clearNotificationPreference() {
copyOnWrite();
instance.clearNotificationPreference();
return this;
}
/**
* 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 set_name = 2 [json_name = "setName"];
* @return Whether the setName field is set.
*/
@java.lang.Override
public boolean hasSetName() {
return instance.hasSetName();
}
/**
* string set_name = 2 [json_name = "setName"];
* @return The setName.
*/
@java.lang.Override
public java.lang.String getSetName() {
return instance.getSetName();
}
/**
* string set_name = 2 [json_name = "setName"];
* @return The bytes for setName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSetNameBytes() {
return instance.getSetNameBytes();
}
/**
* string set_name = 2 [json_name = "setName"];
* @param value The setName to set.
* @return This builder for chaining.
*/
public Builder setSetName(
java.lang.String value) {
copyOnWrite();
instance.setSetName(value);
return this;
}
/**
* string set_name = 2 [json_name = "setName"];
* @return This builder for chaining.
*/
public Builder clearSetName() {
copyOnWrite();
instance.clearSetName();
return this;
}
/**
* string set_name = 2 [json_name = "setName"];
* @param value The bytes for setName to set.
* @return This builder for chaining.
*/
public Builder setSetNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSetNameBytes(value);
return this;
}
/**
* string del_name = 3 [json_name = "delName"];
* @return Whether the delName field is set.
*/
@java.lang.Override
public boolean hasDelName() {
return instance.hasDelName();
}
/**
* string del_name = 3 [json_name = "delName"];
* @return The delName.
*/
@java.lang.Override
public java.lang.String getDelName() {
return instance.getDelName();
}
/**
* string del_name = 3 [json_name = "delName"];
* @return The bytes for delName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDelNameBytes() {
return instance.getDelNameBytes();
}
/**
* string del_name = 3 [json_name = "delName"];
* @param value The delName to set.
* @return This builder for chaining.
*/
public Builder setDelName(
java.lang.String value) {
copyOnWrite();
instance.setDelName(value);
return this;
}
/**
* string del_name = 3 [json_name = "delName"];
* @return This builder for chaining.
*/
public Builder clearDelName() {
copyOnWrite();
instance.clearDelName();
return this;
}
/**
* string del_name = 3 [json_name = "delName"];
* @param value The bytes for delName to set.
* @return This builder for chaining.
*/
public Builder setDelNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setDelNameBytes(value);
return this;
}
/**
* string set_avatar = 4 [json_name = "setAvatar"];
* @return Whether the setAvatar field is set.
*/
@java.lang.Override
public boolean hasSetAvatar() {
return instance.hasSetAvatar();
}
/**
* string set_avatar = 4 [json_name = "setAvatar"];
* @return The setAvatar.
*/
@java.lang.Override
public java.lang.String getSetAvatar() {
return instance.getSetAvatar();
}
/**
* string set_avatar = 4 [json_name = "setAvatar"];
* @return The bytes for setAvatar.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSetAvatarBytes() {
return instance.getSetAvatarBytes();
}
/**
* string set_avatar = 4 [json_name = "setAvatar"];
* @param value The setAvatar to set.
* @return This builder for chaining.
*/
public Builder setSetAvatar(
java.lang.String value) {
copyOnWrite();
instance.setSetAvatar(value);
return this;
}
/**
* string set_avatar = 4 [json_name = "setAvatar"];
* @return This builder for chaining.
*/
public Builder clearSetAvatar() {
copyOnWrite();
instance.clearSetAvatar();
return this;
}
/**
* string set_avatar = 4 [json_name = "setAvatar"];
* @param value The bytes for setAvatar to set.
* @return This builder for chaining.
*/
public Builder setSetAvatarBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSetAvatarBytes(value);
return this;
}
/**
* string del_avatar = 5 [json_name = "delAvatar"];
* @return Whether the delAvatar field is set.
*/
@java.lang.Override
public boolean hasDelAvatar() {
return instance.hasDelAvatar();
}
/**
* string del_avatar = 5 [json_name = "delAvatar"];
* @return The delAvatar.
*/
@java.lang.Override
public java.lang.String getDelAvatar() {
return instance.getDelAvatar();
}
/**
* string del_avatar = 5 [json_name = "delAvatar"];
* @return The bytes for delAvatar.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDelAvatarBytes() {
return instance.getDelAvatarBytes();
}
/**
* string del_avatar = 5 [json_name = "delAvatar"];
* @param value The delAvatar to set.
* @return This builder for chaining.
*/
public Builder setDelAvatar(
java.lang.String value) {
copyOnWrite();
instance.setDelAvatar(value);
return this;
}
/**
* string del_avatar = 5 [json_name = "delAvatar"];
* @return This builder for chaining.
*/
public Builder clearDelAvatar() {
copyOnWrite();
instance.clearDelAvatar();
return this;
}
/**
* string del_avatar = 5 [json_name = "delAvatar"];
* @param value The bytes for delAvatar to set.
* @return This builder for chaining.
*/
public Builder setDelAvatarBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setDelAvatarBytes(value);
return this;
}
/**
* string set_avatar_background_colour = 6 [json_name = "setAvatarBackgroundColour"];
* @return Whether the setAvatarBackgroundColour field is set.
*/
@java.lang.Override
public boolean hasSetAvatarBackgroundColour() {
return instance.hasSetAvatarBackgroundColour();
}
/**
* string set_avatar_background_colour = 6 [json_name = "setAvatarBackgroundColour"];
* @return The setAvatarBackgroundColour.
*/
@java.lang.Override
public java.lang.String getSetAvatarBackgroundColour() {
return instance.getSetAvatarBackgroundColour();
}
/**
* string set_avatar_background_colour = 6 [json_name = "setAvatarBackgroundColour"];
* @return The bytes for setAvatarBackgroundColour.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSetAvatarBackgroundColourBytes() {
return instance.getSetAvatarBackgroundColourBytes();
}
/**
* string set_avatar_background_colour = 6 [json_name = "setAvatarBackgroundColour"];
* @param value The setAvatarBackgroundColour to set.
* @return This builder for chaining.
*/
public Builder setSetAvatarBackgroundColour(
java.lang.String value) {
copyOnWrite();
instance.setSetAvatarBackgroundColour(value);
return this;
}
/**
* string set_avatar_background_colour = 6 [json_name = "setAvatarBackgroundColour"];
* @return This builder for chaining.
*/
public Builder clearSetAvatarBackgroundColour() {
copyOnWrite();
instance.clearSetAvatarBackgroundColour();
return this;
}
/**
* string set_avatar_background_colour = 6 [json_name = "setAvatarBackgroundColour"];
* @param value The bytes for setAvatarBackgroundColour to set.
* @return This builder for chaining.
*/
public Builder setSetAvatarBackgroundColourBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSetAvatarBackgroundColourBytes(value);
return this;
}
/**
* string del_avatar_background_colour = 7 [json_name = "delAvatarBackgroundColour"];
* @return Whether the delAvatarBackgroundColour field is set.
*/
@java.lang.Override
public boolean hasDelAvatarBackgroundColour() {
return instance.hasDelAvatarBackgroundColour();
}
/**
* string del_avatar_background_colour = 7 [json_name = "delAvatarBackgroundColour"];
* @return The delAvatarBackgroundColour.
*/
@java.lang.Override
public java.lang.String getDelAvatarBackgroundColour() {
return instance.getDelAvatarBackgroundColour();
}
/**
* string del_avatar_background_colour = 7 [json_name = "delAvatarBackgroundColour"];
* @return The bytes for delAvatarBackgroundColour.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDelAvatarBackgroundColourBytes() {
return instance.getDelAvatarBackgroundColourBytes();
}
/**
* string del_avatar_background_colour = 7 [json_name = "delAvatarBackgroundColour"];
* @param value The delAvatarBackgroundColour to set.
* @return This builder for chaining.
*/
public Builder setDelAvatarBackgroundColour(
java.lang.String value) {
copyOnWrite();
instance.setDelAvatarBackgroundColour(value);
return this;
}
/**
* string del_avatar_background_colour = 7 [json_name = "delAvatarBackgroundColour"];
* @return This builder for chaining.
*/
public Builder clearDelAvatarBackgroundColour() {
copyOnWrite();
instance.clearDelAvatarBackgroundColour();
return this;
}
/**
* string del_avatar_background_colour = 7 [json_name = "delAvatarBackgroundColour"];
* @param value The bytes for delAvatarBackgroundColour to set.
* @return This builder for chaining.
*/
public Builder setDelAvatarBackgroundColourBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setDelAvatarBackgroundColourBytes(value);
return this;
}
/**
* string set_timezone = 8 [json_name = "setTimezone"];
* @return Whether the setTimezone field is set.
*/
@java.lang.Override
public boolean hasSetTimezone() {
return instance.hasSetTimezone();
}
/**
* string set_timezone = 8 [json_name = "setTimezone"];
* @return The setTimezone.
*/
@java.lang.Override
public java.lang.String getSetTimezone() {
return instance.getSetTimezone();
}
/**
* string set_timezone = 8 [json_name = "setTimezone"];
* @return The bytes for setTimezone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSetTimezoneBytes() {
return instance.getSetTimezoneBytes();
}
/**
* string set_timezone = 8 [json_name = "setTimezone"];
* @param value The setTimezone to set.
* @return This builder for chaining.
*/
public Builder setSetTimezone(
java.lang.String value) {
copyOnWrite();
instance.setSetTimezone(value);
return this;
}
/**
* string set_timezone = 8 [json_name = "setTimezone"];
* @return This builder for chaining.
*/
public Builder clearSetTimezone() {
copyOnWrite();
instance.clearSetTimezone();
return this;
}
/**
* string set_timezone = 8 [json_name = "setTimezone"];
* @param value The bytes for setTimezone to set.
* @return This builder for chaining.
*/
public Builder setSetTimezoneBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSetTimezoneBytes(value);
return this;
}
/**
* string del_timezone = 9 [json_name = "delTimezone"];
* @return Whether the delTimezone field is set.
*/
@java.lang.Override
public boolean hasDelTimezone() {
return instance.hasDelTimezone();
}
/**
* string del_timezone = 9 [json_name = "delTimezone"];
* @return The delTimezone.
*/
@java.lang.Override
public java.lang.String getDelTimezone() {
return instance.getDelTimezone();
}
/**
* string del_timezone = 9 [json_name = "delTimezone"];
* @return The bytes for delTimezone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDelTimezoneBytes() {
return instance.getDelTimezoneBytes();
}
/**
* string del_timezone = 9 [json_name = "delTimezone"];
* @param value The delTimezone to set.
* @return This builder for chaining.
*/
public Builder setDelTimezone(
java.lang.String value) {
copyOnWrite();
instance.setDelTimezone(value);
return this;
}
/**
* string del_timezone = 9 [json_name = "delTimezone"];
* @return This builder for chaining.
*/
public Builder clearDelTimezone() {
copyOnWrite();
instance.clearDelTimezone();
return this;
}
/**
* string del_timezone = 9 [json_name = "delTimezone"];
* @param value The bytes for delTimezone to set.
* @return This builder for chaining.
*/
public Builder setDelTimezoneBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setDelTimezoneBytes(value);
return this;
}
/**
* .streamlayer.users.UserNotificationPreference set_notification_preference = 10 [json_name = "setNotificationPreference"];
* @return Whether the setNotificationPreference field is set.
*/
@java.lang.Override
public boolean hasSetNotificationPreference() {
return instance.hasSetNotificationPreference();
}
/**
* .streamlayer.users.UserNotificationPreference set_notification_preference = 10 [json_name = "setNotificationPreference"];
* @return The enum numeric value on the wire for setNotificationPreference.
*/
@java.lang.Override
public int getSetNotificationPreferenceValue() {
return instance.getSetNotificationPreferenceValue();
}
/**
* .streamlayer.users.UserNotificationPreference set_notification_preference = 10 [json_name = "setNotificationPreference"];
* @param value The enum numeric value on the wire for setNotificationPreference to set.
* @return This builder for chaining.
*/
public Builder setSetNotificationPreferenceValue(int value) {
copyOnWrite();
instance.setSetNotificationPreferenceValue(value);
return this;
}
/**
* .streamlayer.users.UserNotificationPreference set_notification_preference = 10 [json_name = "setNotificationPreference"];
* @return The setNotificationPreference.
*/
@java.lang.Override
public com.streamlayer.users.UserNotificationPreference getSetNotificationPreference() {
return instance.getSetNotificationPreference();
}
/**
* .streamlayer.users.UserNotificationPreference set_notification_preference = 10 [json_name = "setNotificationPreference"];
* @param value The setNotificationPreference to set.
* @return This builder for chaining.
*/
public Builder setSetNotificationPreference(com.streamlayer.users.UserNotificationPreference value) {
copyOnWrite();
instance.setSetNotificationPreference(value);
return this;
}
/**
* .streamlayer.users.UserNotificationPreference set_notification_preference = 10 [json_name = "setNotificationPreference"];
* @return This builder for chaining.
*/
public Builder clearSetNotificationPreference() {
copyOnWrite();
instance.clearSetNotificationPreference();
return this;
}
/**
* .streamlayer.users.UserNotificationPreference del_notification_preference = 11 [json_name = "delNotificationPreference"];
* @return Whether the delNotificationPreference field is set.
*/
@java.lang.Override
public boolean hasDelNotificationPreference() {
return instance.hasDelNotificationPreference();
}
/**
* .streamlayer.users.UserNotificationPreference del_notification_preference = 11 [json_name = "delNotificationPreference"];
* @return The enum numeric value on the wire for delNotificationPreference.
*/
@java.lang.Override
public int getDelNotificationPreferenceValue() {
return instance.getDelNotificationPreferenceValue();
}
/**
* .streamlayer.users.UserNotificationPreference del_notification_preference = 11 [json_name = "delNotificationPreference"];
* @param value The enum numeric value on the wire for delNotificationPreference to set.
* @return This builder for chaining.
*/
public Builder setDelNotificationPreferenceValue(int value) {
copyOnWrite();
instance.setDelNotificationPreferenceValue(value);
return this;
}
/**
* .streamlayer.users.UserNotificationPreference del_notification_preference = 11 [json_name = "delNotificationPreference"];
* @return The delNotificationPreference.
*/
@java.lang.Override
public com.streamlayer.users.UserNotificationPreference getDelNotificationPreference() {
return instance.getDelNotificationPreference();
}
/**
* .streamlayer.users.UserNotificationPreference del_notification_preference = 11 [json_name = "delNotificationPreference"];
* @param value The delNotificationPreference to set.
* @return This builder for chaining.
*/
public Builder setDelNotificationPreference(com.streamlayer.users.UserNotificationPreference value) {
copyOnWrite();
instance.setDelNotificationPreference(value);
return this;
}
/**
* .streamlayer.users.UserNotificationPreference del_notification_preference = 11 [json_name = "delNotificationPreference"];
* @return This builder for chaining.
*/
public Builder clearDelNotificationPreference() {
copyOnWrite();
instance.clearDelNotificationPreference();
return this;
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @return A list containing the setRoles.
*/
@java.lang.Override
public java.util.List
getSetRolesList() {
return java.util.Collections.unmodifiableList(
instance.getSetRolesList());
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @return The count of setRoles.
*/
@java.lang.Override
public int getSetRolesCount() {
return instance.getSetRolesCount();
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @param index The index of the element to return.
* @return The setRoles at the given index.
*/
@java.lang.Override
public java.lang.String getSetRoles(int index) {
return instance.getSetRoles(index);
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @param index The index of the value to return.
* @return The bytes of the setRoles at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSetRolesBytes(int index) {
return instance.getSetRolesBytes(index);
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @param index The index to set the value at.
* @param value The setRoles to set.
* @return This builder for chaining.
*/
public Builder setSetRoles(
int index, java.lang.String value) {
copyOnWrite();
instance.setSetRoles(index, value);
return this;
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @param value The setRoles to add.
* @return This builder for chaining.
*/
public Builder addSetRoles(
java.lang.String value) {
copyOnWrite();
instance.addSetRoles(value);
return this;
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @param values The setRoles to add.
* @return This builder for chaining.
*/
public Builder addAllSetRoles(
java.lang.Iterable values) {
copyOnWrite();
instance.addAllSetRoles(values);
return this;
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @return This builder for chaining.
*/
public Builder clearSetRoles() {
copyOnWrite();
instance.clearSetRoles();
return this;
}
/**
* repeated string set_roles = 12 [json_name = "setRoles"];
* @param value The bytes of the setRoles to add.
* @return This builder for chaining.
*/
public Builder addSetRolesBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.addSetRolesBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.users.admin.UpdateRequest)
}
@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.admin.UpdateRequest();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"name_",
"nameCase_",
"avatar_",
"avatarCase_",
"avatarBackgroundColour_",
"avatarBackgroundColourCase_",
"timezone_",
"timezoneCase_",
"notificationPreference_",
"notificationPreferenceCase_",
"username_",
"setRoles_",
};
java.lang.String info =
"\u0000\f\u0005\u0000\u0001\f\f\u0000\u0001\u0000\u0001\u0208\u0002\u023b\u0000\u0003" +
"\u023b\u0000\u0004\u023b\u0001\u0005\u023b\u0001\u0006\u023b\u0002\u0007\u023b\u0002" +
"\b\u023b\u0003\t\u023b\u0003\n?\u0004\u000b?\u0004\f\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.admin.UpdateRequest.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.admin.UpdateRequest)
private static final com.streamlayer.users.admin.UpdateRequest DEFAULT_INSTANCE;
static {
UpdateRequest defaultInstance = new UpdateRequest();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
UpdateRequest.class, defaultInstance);
}
public static com.streamlayer.users.admin.UpdateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}