main.java.com.streamlayer.users.ExtendedUserAttributes 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/users_common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.users;
/**
* Protobuf type {@code streamlayer.users.ExtendedUserAttributes}
*/
public final class ExtendedUserAttributes extends
com.google.protobuf.GeneratedMessageLite<
ExtendedUserAttributes, ExtendedUserAttributes.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.users.ExtendedUserAttributes)
ExtendedUserAttributesOrBuilder {
private ExtendedUserAttributes() {
username_ = "";
name_ = "";
alias_ = "";
}
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 METADATA_FIELD_NUMBER = 4;
private com.streamlayer.users.UserMetadata metadata_;
/**
* .streamlayer.users.UserMetadata metadata = 4 [json_name = "metadata"];
*/
@java.lang.Override
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.users.UserMetadata metadata = 4 [json_name = "metadata"];
*/
@java.lang.Override
public com.streamlayer.users.UserMetadata getMetadata() {
return metadata_ == null ? com.streamlayer.users.UserMetadata.getDefaultInstance() : metadata_;
}
/**
* .streamlayer.users.UserMetadata metadata = 4 [json_name = "metadata"];
*/
private void setMetadata(com.streamlayer.users.UserMetadata value) {
value.getClass();
metadata_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.users.UserMetadata metadata = 4 [json_name = "metadata"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeMetadata(com.streamlayer.users.UserMetadata value) {
value.getClass();
if (metadata_ != null &&
metadata_ != com.streamlayer.users.UserMetadata.getDefaultInstance()) {
metadata_ =
com.streamlayer.users.UserMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.users.UserMetadata metadata = 4 [json_name = "metadata"];
*/
private void clearMetadata() { metadata_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static com.streamlayer.users.ExtendedUserAttributes parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.users.ExtendedUserAttributes 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.ExtendedUserAttributes 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.ExtendedUserAttributes 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.ExtendedUserAttributes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.users.ExtendedUserAttributes 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.ExtendedUserAttributes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.users.ExtendedUserAttributes 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.ExtendedUserAttributes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.users.ExtendedUserAttributes 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.ExtendedUserAttributes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.users.ExtendedUserAttributes 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.ExtendedUserAttributes prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.users.ExtendedUserAttributes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.users.ExtendedUserAttributes, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.users.ExtendedUserAttributes)
com.streamlayer.users.ExtendedUserAttributesOrBuilder {
// Construct using com.streamlayer.users.ExtendedUserAttributes.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;
}
/**
* .streamlayer.users.UserMetadata metadata = 4 [json_name = "metadata"];
*/
@java.lang.Override
public boolean hasMetadata() {
return instance.hasMetadata();
}
/**
* .streamlayer.users.UserMetadata metadata = 4 [json_name = "metadata"];
*/
@java.lang.Override
public com.streamlayer.users.UserMetadata getMetadata() {
return instance.getMetadata();
}
/**
* .streamlayer.users.UserMetadata metadata = 4 [json_name = "metadata"];
*/
public Builder setMetadata(com.streamlayer.users.UserMetadata value) {
copyOnWrite();
instance.setMetadata(value);
return this;
}
/**
* .streamlayer.users.UserMetadata metadata = 4 [json_name = "metadata"];
*/
public Builder setMetadata(
com.streamlayer.users.UserMetadata.Builder builderForValue) {
copyOnWrite();
instance.setMetadata(builderForValue.build());
return this;
}
/**
* .streamlayer.users.UserMetadata metadata = 4 [json_name = "metadata"];
*/
public Builder mergeMetadata(com.streamlayer.users.UserMetadata value) {
copyOnWrite();
instance.mergeMetadata(value);
return this;
}
/**
* .streamlayer.users.UserMetadata metadata = 4 [json_name = "metadata"];
*/
public Builder clearMetadata() { copyOnWrite();
instance.clearMetadata();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.users.ExtendedUserAttributes)
}
@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.ExtendedUserAttributes();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"username_",
"name_",
"alias_",
"metadata_",
};
java.lang.String info =
"\u0000\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
"\u0003\u0208\u0004\u1009\u0000";
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.ExtendedUserAttributes.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.ExtendedUserAttributes)
private static final com.streamlayer.users.ExtendedUserAttributes DEFAULT_INSTANCE;
static {
ExtendedUserAttributes defaultInstance = new ExtendedUserAttributes();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
ExtendedUserAttributes.class, defaultInstance);
}
public static com.streamlayer.users.ExtendedUserAttributes getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}