cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grpc-module-user Show documentation
Show all versions of grpc-module-user Show documentation
Herodotus 软件生态组件库GRPC用户定义模块
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HerodotusUserService.proto
package cn.herodotus.stirrup.grpc.user;
/**
* Protobuf type {@code cn.herodotus.grpc.user.GrpcHerodotusUser}
*/
public final class GrpcHerodotusUser extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cn.herodotus.grpc.user.GrpcHerodotusUser)
GrpcHerodotusUserOrBuilder {
private static final long serialVersionUID = 0L;
// Use GrpcHerodotusUser.newBuilder() to construct.
private GrpcHerodotusUser(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GrpcHerodotusUser() {
userId_ = "";
password_ = "";
username_ = "";
employeeId_ = "";
avatar_ = "";
roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GrpcHerodotusUser();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.herodotus.stirrup.grpc.user.GrpcHerodotusUserServiceProto.internal_static_cn_herodotus_grpc_user_GrpcHerodotusUser_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.herodotus.stirrup.grpc.user.GrpcHerodotusUserServiceProto.internal_static_cn_herodotus_grpc_user_GrpcHerodotusUser_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser.class, cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser.Builder.class);
}
public static final int USERID_FIELD_NUMBER = 1;
private volatile java.lang.Object userId_;
/**
* string userId = 1;
* @return The userId.
*/
@java.lang.Override
public java.lang.String getUserId() {
java.lang.Object ref = userId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userId_ = s;
return s;
}
}
/**
* string userId = 1;
* @return The bytes for userId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PASSWORD_FIELD_NUMBER = 2;
private volatile java.lang.Object password_;
/**
* string password = 2;
* @return The password.
*/
@java.lang.Override
public java.lang.String getPassword() {
java.lang.Object ref = password_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
password_ = s;
return s;
}
}
/**
* string password = 2;
* @return The bytes for password.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPasswordBytes() {
java.lang.Object ref = password_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
password_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USERNAME_FIELD_NUMBER = 3;
private volatile java.lang.Object username_;
/**
* string username = 3;
* @return The username.
*/
@java.lang.Override
public java.lang.String getUsername() {
java.lang.Object ref = username_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
username_ = s;
return s;
}
}
/**
* string username = 3;
* @return The bytes for username.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUsernameBytes() {
java.lang.Object ref = username_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
username_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EMPLOYEEID_FIELD_NUMBER = 4;
private volatile java.lang.Object employeeId_;
/**
* string employeeId = 4;
* @return The employeeId.
*/
@java.lang.Override
public java.lang.String getEmployeeId() {
java.lang.Object ref = employeeId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
employeeId_ = s;
return s;
}
}
/**
* string employeeId = 4;
* @return The bytes for employeeId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEmployeeIdBytes() {
java.lang.Object ref = employeeId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
employeeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AVATAR_FIELD_NUMBER = 5;
private volatile java.lang.Object avatar_;
/**
* string avatar = 5;
* @return The avatar.
*/
@java.lang.Override
public java.lang.String getAvatar() {
java.lang.Object ref = avatar_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
avatar_ = s;
return s;
}
}
/**
* string avatar = 5;
* @return The bytes for avatar.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAvatarBytes() {
java.lang.Object ref = avatar_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
avatar_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACCOUNTNONEXPIRED_FIELD_NUMBER = 6;
private boolean accountNonExpired_;
/**
* bool accountNonExpired = 6;
* @return The accountNonExpired.
*/
@java.lang.Override
public boolean getAccountNonExpired() {
return accountNonExpired_;
}
public static final int ACCOUNTNONLOCKED_FIELD_NUMBER = 7;
private boolean accountNonLocked_;
/**
* bool accountNonLocked = 7;
* @return The accountNonLocked.
*/
@java.lang.Override
public boolean getAccountNonLocked() {
return accountNonLocked_;
}
public static final int CREDENTIALSNONEXPIRED_FIELD_NUMBER = 8;
private boolean credentialsNonExpired_;
/**
* bool credentialsNonExpired = 8;
* @return The credentialsNonExpired.
*/
@java.lang.Override
public boolean getCredentialsNonExpired() {
return credentialsNonExpired_;
}
public static final int ENABLED_FIELD_NUMBER = 9;
private boolean enabled_;
/**
* bool enabled = 9;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
public static final int ROLES_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList roles_;
/**
* repeated string roles = 10;
* @return A list containing the roles.
*/
public com.google.protobuf.ProtocolStringList
getRolesList() {
return roles_;
}
/**
* repeated string roles = 10;
* @return The count of roles.
*/
public int getRolesCount() {
return roles_.size();
}
/**
* repeated string roles = 10;
* @param index The index of the element to return.
* @return The roles at the given index.
*/
public java.lang.String getRoles(int index) {
return roles_.get(index);
}
/**
* repeated string roles = 10;
* @param index The index of the value to return.
* @return The bytes of the roles at the given index.
*/
public com.google.protobuf.ByteString
getRolesBytes(int index) {
return roles_.getByteString(index);
}
public static final int AUTHORITIES_FIELD_NUMBER = 11;
private com.google.protobuf.LazyStringList authorities_;
/**
* repeated string authorities = 11;
* @return A list containing the authorities.
*/
public com.google.protobuf.ProtocolStringList
getAuthoritiesList() {
return authorities_;
}
/**
* repeated string authorities = 11;
* @return The count of authorities.
*/
public int getAuthoritiesCount() {
return authorities_.size();
}
/**
* repeated string authorities = 11;
* @param index The index of the element to return.
* @return The authorities at the given index.
*/
public java.lang.String getAuthorities(int index) {
return authorities_.get(index);
}
/**
* repeated string authorities = 11;
* @param index The index of the value to return.
* @return The bytes of the authorities at the given index.
*/
public com.google.protobuf.ByteString
getAuthoritiesBytes(int index) {
return authorities_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, username_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(employeeId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, employeeId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(avatar_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, avatar_);
}
if (accountNonExpired_ != false) {
output.writeBool(6, accountNonExpired_);
}
if (accountNonLocked_ != false) {
output.writeBool(7, accountNonLocked_);
}
if (credentialsNonExpired_ != false) {
output.writeBool(8, credentialsNonExpired_);
}
if (enabled_ != false) {
output.writeBool(9, enabled_);
}
for (int i = 0; i < roles_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, roles_.getRaw(i));
}
for (int i = 0; i < authorities_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, authorities_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(employeeId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, employeeId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(avatar_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, avatar_);
}
if (accountNonExpired_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, accountNonExpired_);
}
if (accountNonLocked_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, accountNonLocked_);
}
if (credentialsNonExpired_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, credentialsNonExpired_);
}
if (enabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, enabled_);
}
{
int dataSize = 0;
for (int i = 0; i < roles_.size(); i++) {
dataSize += computeStringSizeNoTag(roles_.getRaw(i));
}
size += dataSize;
size += 1 * getRolesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < authorities_.size(); i++) {
dataSize += computeStringSizeNoTag(authorities_.getRaw(i));
}
size += dataSize;
size += 1 * getAuthoritiesList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser)) {
return super.equals(obj);
}
cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser other = (cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser) obj;
if (!getUserId()
.equals(other.getUserId())) return false;
if (!getPassword()
.equals(other.getPassword())) return false;
if (!getUsername()
.equals(other.getUsername())) return false;
if (!getEmployeeId()
.equals(other.getEmployeeId())) return false;
if (!getAvatar()
.equals(other.getAvatar())) return false;
if (getAccountNonExpired()
!= other.getAccountNonExpired()) return false;
if (getAccountNonLocked()
!= other.getAccountNonLocked()) return false;
if (getCredentialsNonExpired()
!= other.getCredentialsNonExpired()) return false;
if (getEnabled()
!= other.getEnabled()) return false;
if (!getRolesList()
.equals(other.getRolesList())) return false;
if (!getAuthoritiesList()
.equals(other.getAuthoritiesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + USERID_FIELD_NUMBER;
hash = (53 * hash) + getUserId().hashCode();
hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
hash = (53 * hash) + getPassword().hashCode();
hash = (37 * hash) + USERNAME_FIELD_NUMBER;
hash = (53 * hash) + getUsername().hashCode();
hash = (37 * hash) + EMPLOYEEID_FIELD_NUMBER;
hash = (53 * hash) + getEmployeeId().hashCode();
hash = (37 * hash) + AVATAR_FIELD_NUMBER;
hash = (53 * hash) + getAvatar().hashCode();
hash = (37 * hash) + ACCOUNTNONEXPIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAccountNonExpired());
hash = (37 * hash) + ACCOUNTNONLOCKED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAccountNonLocked());
hash = (37 * hash) + CREDENTIALSNONEXPIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCredentialsNonExpired());
hash = (37 * hash) + ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnabled());
if (getRolesCount() > 0) {
hash = (37 * hash) + ROLES_FIELD_NUMBER;
hash = (53 * hash) + getRolesList().hashCode();
}
if (getAuthoritiesCount() > 0) {
hash = (37 * hash) + AUTHORITIES_FIELD_NUMBER;
hash = (53 * hash) + getAuthoritiesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cn.herodotus.grpc.user.GrpcHerodotusUser}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cn.herodotus.grpc.user.GrpcHerodotusUser)
cn.herodotus.stirrup.grpc.user.GrpcHerodotusUserOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.herodotus.stirrup.grpc.user.GrpcHerodotusUserServiceProto.internal_static_cn_herodotus_grpc_user_GrpcHerodotusUser_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.herodotus.stirrup.grpc.user.GrpcHerodotusUserServiceProto.internal_static_cn_herodotus_grpc_user_GrpcHerodotusUser_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser.class, cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser.Builder.class);
}
// Construct using cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
userId_ = "";
password_ = "";
username_ = "";
employeeId_ = "";
avatar_ = "";
accountNonExpired_ = false;
accountNonLocked_ = false;
credentialsNonExpired_ = false;
enabled_ = false;
roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.herodotus.stirrup.grpc.user.GrpcHerodotusUserServiceProto.internal_static_cn_herodotus_grpc_user_GrpcHerodotusUser_descriptor;
}
@java.lang.Override
public cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser getDefaultInstanceForType() {
return cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser.getDefaultInstance();
}
@java.lang.Override
public cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser build() {
cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser buildPartial() {
cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser result = new cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser(this);
int from_bitField0_ = bitField0_;
result.userId_ = userId_;
result.password_ = password_;
result.username_ = username_;
result.employeeId_ = employeeId_;
result.avatar_ = avatar_;
result.accountNonExpired_ = accountNonExpired_;
result.accountNonLocked_ = accountNonLocked_;
result.credentialsNonExpired_ = credentialsNonExpired_;
result.enabled_ = enabled_;
if (((bitField0_ & 0x00000001) != 0)) {
roles_ = roles_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.roles_ = roles_;
if (((bitField0_ & 0x00000002) != 0)) {
authorities_ = authorities_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.authorities_ = authorities_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser) {
return mergeFrom((cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser other) {
if (other == cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser.getDefaultInstance()) return this;
if (!other.getUserId().isEmpty()) {
userId_ = other.userId_;
onChanged();
}
if (!other.getPassword().isEmpty()) {
password_ = other.password_;
onChanged();
}
if (!other.getUsername().isEmpty()) {
username_ = other.username_;
onChanged();
}
if (!other.getEmployeeId().isEmpty()) {
employeeId_ = other.employeeId_;
onChanged();
}
if (!other.getAvatar().isEmpty()) {
avatar_ = other.avatar_;
onChanged();
}
if (other.getAccountNonExpired() != false) {
setAccountNonExpired(other.getAccountNonExpired());
}
if (other.getAccountNonLocked() != false) {
setAccountNonLocked(other.getAccountNonLocked());
}
if (other.getCredentialsNonExpired() != false) {
setCredentialsNonExpired(other.getCredentialsNonExpired());
}
if (other.getEnabled() != false) {
setEnabled(other.getEnabled());
}
if (!other.roles_.isEmpty()) {
if (roles_.isEmpty()) {
roles_ = other.roles_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRolesIsMutable();
roles_.addAll(other.roles_);
}
onChanged();
}
if (!other.authorities_.isEmpty()) {
if (authorities_.isEmpty()) {
authorities_ = other.authorities_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAuthoritiesIsMutable();
authorities_.addAll(other.authorities_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
userId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
password_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
username_ = input.readStringRequireUtf8();
break;
} // case 26
case 34: {
employeeId_ = input.readStringRequireUtf8();
break;
} // case 34
case 42: {
avatar_ = input.readStringRequireUtf8();
break;
} // case 42
case 48: {
accountNonExpired_ = input.readBool();
break;
} // case 48
case 56: {
accountNonLocked_ = input.readBool();
break;
} // case 56
case 64: {
credentialsNonExpired_ = input.readBool();
break;
} // case 64
case 72: {
enabled_ = input.readBool();
break;
} // case 72
case 82: {
java.lang.String s = input.readStringRequireUtf8();
ensureRolesIsMutable();
roles_.add(s);
break;
} // case 82
case 90: {
java.lang.String s = input.readStringRequireUtf8();
ensureAuthoritiesIsMutable();
authorities_.add(s);
break;
} // case 90
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object userId_ = "";
/**
* string userId = 1;
* @return The userId.
*/
public java.lang.String getUserId() {
java.lang.Object ref = userId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string userId = 1;
* @return The bytes for userId.
*/
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string userId = 1;
* @param value The userId to set.
* @return This builder for chaining.
*/
public Builder setUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userId_ = value;
onChanged();
return this;
}
/**
* string userId = 1;
* @return This builder for chaining.
*/
public Builder clearUserId() {
userId_ = getDefaultInstance().getUserId();
onChanged();
return this;
}
/**
* string userId = 1;
* @param value The bytes for userId to set.
* @return This builder for chaining.
*/
public Builder setUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userId_ = value;
onChanged();
return this;
}
private java.lang.Object password_ = "";
/**
* string password = 2;
* @return The password.
*/
public java.lang.String getPassword() {
java.lang.Object ref = password_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
password_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string password = 2;
* @return The bytes for password.
*/
public com.google.protobuf.ByteString
getPasswordBytes() {
java.lang.Object ref = password_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
password_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string password = 2;
* @param value The password to set.
* @return This builder for chaining.
*/
public Builder setPassword(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
password_ = value;
onChanged();
return this;
}
/**
* string password = 2;
* @return This builder for chaining.
*/
public Builder clearPassword() {
password_ = getDefaultInstance().getPassword();
onChanged();
return this;
}
/**
* string password = 2;
* @param value The bytes for password to set.
* @return This builder for chaining.
*/
public Builder setPasswordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
password_ = value;
onChanged();
return this;
}
private java.lang.Object username_ = "";
/**
* string username = 3;
* @return The username.
*/
public java.lang.String getUsername() {
java.lang.Object ref = username_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
username_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string username = 3;
* @return The bytes for username.
*/
public com.google.protobuf.ByteString
getUsernameBytes() {
java.lang.Object ref = username_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
username_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string username = 3;
* @param value The username to set.
* @return This builder for chaining.
*/
public Builder setUsername(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
username_ = value;
onChanged();
return this;
}
/**
* string username = 3;
* @return This builder for chaining.
*/
public Builder clearUsername() {
username_ = getDefaultInstance().getUsername();
onChanged();
return this;
}
/**
* string username = 3;
* @param value The bytes for username to set.
* @return This builder for chaining.
*/
public Builder setUsernameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
username_ = value;
onChanged();
return this;
}
private java.lang.Object employeeId_ = "";
/**
* string employeeId = 4;
* @return The employeeId.
*/
public java.lang.String getEmployeeId() {
java.lang.Object ref = employeeId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
employeeId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string employeeId = 4;
* @return The bytes for employeeId.
*/
public com.google.protobuf.ByteString
getEmployeeIdBytes() {
java.lang.Object ref = employeeId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
employeeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string employeeId = 4;
* @param value The employeeId to set.
* @return This builder for chaining.
*/
public Builder setEmployeeId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
employeeId_ = value;
onChanged();
return this;
}
/**
* string employeeId = 4;
* @return This builder for chaining.
*/
public Builder clearEmployeeId() {
employeeId_ = getDefaultInstance().getEmployeeId();
onChanged();
return this;
}
/**
* string employeeId = 4;
* @param value The bytes for employeeId to set.
* @return This builder for chaining.
*/
public Builder setEmployeeIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
employeeId_ = value;
onChanged();
return this;
}
private java.lang.Object avatar_ = "";
/**
* string avatar = 5;
* @return The avatar.
*/
public java.lang.String getAvatar() {
java.lang.Object ref = avatar_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
avatar_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string avatar = 5;
* @return The bytes for avatar.
*/
public com.google.protobuf.ByteString
getAvatarBytes() {
java.lang.Object ref = avatar_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
avatar_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string avatar = 5;
* @param value The avatar to set.
* @return This builder for chaining.
*/
public Builder setAvatar(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
avatar_ = value;
onChanged();
return this;
}
/**
* string avatar = 5;
* @return This builder for chaining.
*/
public Builder clearAvatar() {
avatar_ = getDefaultInstance().getAvatar();
onChanged();
return this;
}
/**
* string avatar = 5;
* @param value The bytes for avatar to set.
* @return This builder for chaining.
*/
public Builder setAvatarBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
avatar_ = value;
onChanged();
return this;
}
private boolean accountNonExpired_ ;
/**
* bool accountNonExpired = 6;
* @return The accountNonExpired.
*/
@java.lang.Override
public boolean getAccountNonExpired() {
return accountNonExpired_;
}
/**
* bool accountNonExpired = 6;
* @param value The accountNonExpired to set.
* @return This builder for chaining.
*/
public Builder setAccountNonExpired(boolean value) {
accountNonExpired_ = value;
onChanged();
return this;
}
/**
* bool accountNonExpired = 6;
* @return This builder for chaining.
*/
public Builder clearAccountNonExpired() {
accountNonExpired_ = false;
onChanged();
return this;
}
private boolean accountNonLocked_ ;
/**
* bool accountNonLocked = 7;
* @return The accountNonLocked.
*/
@java.lang.Override
public boolean getAccountNonLocked() {
return accountNonLocked_;
}
/**
* bool accountNonLocked = 7;
* @param value The accountNonLocked to set.
* @return This builder for chaining.
*/
public Builder setAccountNonLocked(boolean value) {
accountNonLocked_ = value;
onChanged();
return this;
}
/**
* bool accountNonLocked = 7;
* @return This builder for chaining.
*/
public Builder clearAccountNonLocked() {
accountNonLocked_ = false;
onChanged();
return this;
}
private boolean credentialsNonExpired_ ;
/**
* bool credentialsNonExpired = 8;
* @return The credentialsNonExpired.
*/
@java.lang.Override
public boolean getCredentialsNonExpired() {
return credentialsNonExpired_;
}
/**
* bool credentialsNonExpired = 8;
* @param value The credentialsNonExpired to set.
* @return This builder for chaining.
*/
public Builder setCredentialsNonExpired(boolean value) {
credentialsNonExpired_ = value;
onChanged();
return this;
}
/**
* bool credentialsNonExpired = 8;
* @return This builder for chaining.
*/
public Builder clearCredentialsNonExpired() {
credentialsNonExpired_ = false;
onChanged();
return this;
}
private boolean enabled_ ;
/**
* bool enabled = 9;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
/**
* bool enabled = 9;
* @param value The enabled to set.
* @return This builder for chaining.
*/
public Builder setEnabled(boolean value) {
enabled_ = value;
onChanged();
return this;
}
/**
* bool enabled = 9;
* @return This builder for chaining.
*/
public Builder clearEnabled() {
enabled_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRolesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
roles_ = new com.google.protobuf.LazyStringArrayList(roles_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string roles = 10;
* @return A list containing the roles.
*/
public com.google.protobuf.ProtocolStringList
getRolesList() {
return roles_.getUnmodifiableView();
}
/**
* repeated string roles = 10;
* @return The count of roles.
*/
public int getRolesCount() {
return roles_.size();
}
/**
* repeated string roles = 10;
* @param index The index of the element to return.
* @return The roles at the given index.
*/
public java.lang.String getRoles(int index) {
return roles_.get(index);
}
/**
* repeated string roles = 10;
* @param index The index of the value to return.
* @return The bytes of the roles at the given index.
*/
public com.google.protobuf.ByteString
getRolesBytes(int index) {
return roles_.getByteString(index);
}
/**
* repeated string roles = 10;
* @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) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.set(index, value);
onChanged();
return this;
}
/**
* repeated string roles = 10;
* @param value The roles to add.
* @return This builder for chaining.
*/
public Builder addRoles(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.add(value);
onChanged();
return this;
}
/**
* repeated string roles = 10;
* @param values The roles to add.
* @return This builder for chaining.
*/
public Builder addAllRoles(
java.lang.Iterable values) {
ensureRolesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, roles_);
onChanged();
return this;
}
/**
* repeated string roles = 10;
* @return This builder for chaining.
*/
public Builder clearRoles() {
roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string roles = 10;
* @param value The bytes of the roles to add.
* @return This builder for chaining.
*/
public Builder addRolesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureRolesIsMutable();
roles_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAuthoritiesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
authorities_ = new com.google.protobuf.LazyStringArrayList(authorities_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated string authorities = 11;
* @return A list containing the authorities.
*/
public com.google.protobuf.ProtocolStringList
getAuthoritiesList() {
return authorities_.getUnmodifiableView();
}
/**
* repeated string authorities = 11;
* @return The count of authorities.
*/
public int getAuthoritiesCount() {
return authorities_.size();
}
/**
* repeated string authorities = 11;
* @param index The index of the element to return.
* @return The authorities at the given index.
*/
public java.lang.String getAuthorities(int index) {
return authorities_.get(index);
}
/**
* repeated string authorities = 11;
* @param index The index of the value to return.
* @return The bytes of the authorities at the given index.
*/
public com.google.protobuf.ByteString
getAuthoritiesBytes(int index) {
return authorities_.getByteString(index);
}
/**
* repeated string authorities = 11;
* @param index The index to set the value at.
* @param value The authorities to set.
* @return This builder for chaining.
*/
public Builder setAuthorities(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAuthoritiesIsMutable();
authorities_.set(index, value);
onChanged();
return this;
}
/**
* repeated string authorities = 11;
* @param value The authorities to add.
* @return This builder for chaining.
*/
public Builder addAuthorities(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAuthoritiesIsMutable();
authorities_.add(value);
onChanged();
return this;
}
/**
* repeated string authorities = 11;
* @param values The authorities to add.
* @return This builder for chaining.
*/
public Builder addAllAuthorities(
java.lang.Iterable values) {
ensureAuthoritiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, authorities_);
onChanged();
return this;
}
/**
* repeated string authorities = 11;
* @return This builder for chaining.
*/
public Builder clearAuthorities() {
authorities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* repeated string authorities = 11;
* @param value The bytes of the authorities to add.
* @return This builder for chaining.
*/
public Builder addAuthoritiesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAuthoritiesIsMutable();
authorities_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cn.herodotus.grpc.user.GrpcHerodotusUser)
}
// @@protoc_insertion_point(class_scope:cn.herodotus.grpc.user.GrpcHerodotusUser)
private static final cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser();
}
public static cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GrpcHerodotusUser parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cn.herodotus.stirrup.grpc.user.GrpcHerodotusUser getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy