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

io.github.xezzon.geom.user.AddUserReq Maven / Gradle / Ivy

There is a newer version: 0.1.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: user.proto

// Protobuf Java Version: 3.25.1
package io.github.xezzon.geom.user;

/**
 * 
 * 新增用户接口的参数
 * 
* * Protobuf type {@code io.github.xezzon.geom.user.AddUserReq} */ public final class AddUserReq extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.github.xezzon.geom.user.AddUserReq) AddUserReqOrBuilder { private static final long serialVersionUID = 0L; // Use AddUserReq.newBuilder() to construct. private AddUserReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AddUserReq() { username_ = ""; nickname_ = ""; password_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AddUserReq(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.github.xezzon.geom.user.UserProto.internal_static_io_github_xezzon_geom_user_AddUserReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.github.xezzon.geom.user.UserProto.internal_static_io_github_xezzon_geom_user_AddUserReq_fieldAccessorTable .ensureFieldAccessorsInitialized( io.github.xezzon.geom.user.AddUserReq.class, io.github.xezzon.geom.user.AddUserReq.Builder.class); } private int bitField0_; public static final int USERNAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** *
   * 用户名
   * 
* * string username = 1; * @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 = 1; * @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 NICKNAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object nickname_ = ""; /** *
   * 昵称
   * 
* * optional string nickname = 2; * @return Whether the nickname field is set. */ @java.lang.Override public boolean hasNickname() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * 昵称
   * 
* * optional string nickname = 2; * @return The nickname. */ @java.lang.Override public java.lang.String getNickname() { java.lang.Object ref = nickname_; 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(); nickname_ = s; return s; } } /** *
   * 昵称
   * 
* * optional string nickname = 2; * @return The bytes for nickname. */ @java.lang.Override public com.google.protobuf.ByteString getNicknameBytes() { java.lang.Object ref = nickname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nickname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORD_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** *
   * 密码
   * 
* * string password = 3; * @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 = 3; * @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; } } 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(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickname_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, password_); } 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(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickname_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, password_); } 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 io.github.xezzon.geom.user.AddUserReq)) { return super.equals(obj); } io.github.xezzon.geom.user.AddUserReq other = (io.github.xezzon.geom.user.AddUserReq) obj; if (!getUsername() .equals(other.getUsername())) return false; if (hasNickname() != other.hasNickname()) return false; if (hasNickname()) { if (!getNickname() .equals(other.getNickname())) return false; } if (!getPassword() .equals(other.getPassword())) 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) + USERNAME_FIELD_NUMBER; hash = (53 * hash) + getUsername().hashCode(); if (hasNickname()) { hash = (37 * hash) + NICKNAME_FIELD_NUMBER; hash = (53 * hash) + getNickname().hashCode(); } hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.github.xezzon.geom.user.AddUserReq parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.github.xezzon.geom.user.AddUserReq parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.github.xezzon.geom.user.AddUserReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.github.xezzon.geom.user.AddUserReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.github.xezzon.geom.user.AddUserReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.github.xezzon.geom.user.AddUserReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.github.xezzon.geom.user.AddUserReq parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.github.xezzon.geom.user.AddUserReq 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 io.github.xezzon.geom.user.AddUserReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.github.xezzon.geom.user.AddUserReq 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 io.github.xezzon.geom.user.AddUserReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.github.xezzon.geom.user.AddUserReq 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(io.github.xezzon.geom.user.AddUserReq 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 io.github.xezzon.geom.user.AddUserReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.github.xezzon.geom.user.AddUserReq) io.github.xezzon.geom.user.AddUserReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.github.xezzon.geom.user.UserProto.internal_static_io_github_xezzon_geom_user_AddUserReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.github.xezzon.geom.user.UserProto.internal_static_io_github_xezzon_geom_user_AddUserReq_fieldAccessorTable .ensureFieldAccessorsInitialized( io.github.xezzon.geom.user.AddUserReq.class, io.github.xezzon.geom.user.AddUserReq.Builder.class); } // Construct using io.github.xezzon.geom.user.AddUserReq.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; username_ = ""; nickname_ = ""; password_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.github.xezzon.geom.user.UserProto.internal_static_io_github_xezzon_geom_user_AddUserReq_descriptor; } @java.lang.Override public io.github.xezzon.geom.user.AddUserReq getDefaultInstanceForType() { return io.github.xezzon.geom.user.AddUserReq.getDefaultInstance(); } @java.lang.Override public io.github.xezzon.geom.user.AddUserReq build() { io.github.xezzon.geom.user.AddUserReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.github.xezzon.geom.user.AddUserReq buildPartial() { io.github.xezzon.geom.user.AddUserReq result = new io.github.xezzon.geom.user.AddUserReq(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.github.xezzon.geom.user.AddUserReq result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.nickname_ = nickname_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.password_ = password_; } result.bitField0_ |= to_bitField0_; } @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 io.github.xezzon.geom.user.AddUserReq) { return mergeFrom((io.github.xezzon.geom.user.AddUserReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.github.xezzon.geom.user.AddUserReq other) { if (other == io.github.xezzon.geom.user.AddUserReq.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasNickname()) { nickname_ = other.nickname_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getPassword().isEmpty()) { password_ = other.password_; bitField0_ |= 0x00000004; 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: { username_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { nickname_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { password_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 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 username_ = ""; /** *
     * 用户名
     * 
* * string username = 1; * @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 = 1; * @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 = 1; * @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; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * 用户名
     * 
* * string username = 1; * @return This builder for chaining. */ public Builder clearUsername() { username_ = getDefaultInstance().getUsername(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * 用户名
     * 
* * string username = 1; * @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; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object nickname_ = ""; /** *
     * 昵称
     * 
* * optional string nickname = 2; * @return Whether the nickname field is set. */ public boolean hasNickname() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * 昵称
     * 
* * optional string nickname = 2; * @return The nickname. */ public java.lang.String getNickname() { java.lang.Object ref = nickname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nickname_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 昵称
     * 
* * optional string nickname = 2; * @return The bytes for nickname. */ public com.google.protobuf.ByteString getNicknameBytes() { java.lang.Object ref = nickname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nickname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 昵称
     * 
* * optional string nickname = 2; * @param value The nickname to set. * @return This builder for chaining. */ public Builder setNickname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nickname_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * 昵称
     * 
* * optional string nickname = 2; * @return This builder for chaining. */ public Builder clearNickname() { nickname_ = getDefaultInstance().getNickname(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * 昵称
     * 
* * optional string nickname = 2; * @param value The bytes for nickname to set. * @return This builder for chaining. */ public Builder setNicknameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nickname_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object password_ = ""; /** *
     * 密码
     * 
* * string password = 3; * @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 = 3; * @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 = 3; * @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; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * 密码
     * 
* * string password = 3; * @return This builder for chaining. */ public Builder clearPassword() { password_ = getDefaultInstance().getPassword(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * 密码
     * 
* * string password = 3; * @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; bitField0_ |= 0x00000004; 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:io.github.xezzon.geom.user.AddUserReq) } // @@protoc_insertion_point(class_scope:io.github.xezzon.geom.user.AddUserReq) private static final io.github.xezzon.geom.user.AddUserReq DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.github.xezzon.geom.user.AddUserReq(); } public static io.github.xezzon.geom.user.AddUserReq getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AddUserReq 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 io.github.xezzon.geom.user.AddUserReq getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy