// Generated by the protocol buffer compiler. DO NOT EDIT! // source: WDeviceAuthReq.proto package Im.Scrm.Ww.Proto; public final class WDeviceAuthReq { private WDeviceAuthReq() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface DeviceAuthReqMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:Im.Scrm.Ww.Proto.DeviceAuthReqMessage) com.google.protobuf.MessageOrBuilder { /** *
*认证方式 ** *
.Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType AuthType = 1;
* @return The enum numeric value on the wire for authType.
*/
int getAuthTypeValue();
/**
* *认证方式 ** *
.Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType AuthType = 1;
* @return The authType.
*/
Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.EnumAuthType getAuthType();
/**
* *凭证信息(不同认证方式传入不同的凭证信息) ** *
string Credential = 2;
* @return The credential.
*/
java.lang.String getCredential();
/**
* *凭证信息(不同认证方式传入不同的凭证信息) ** *
string Credential = 2;
* @return The bytes for credential.
*/
com.google.protobuf.ByteString
getCredentialBytes();
}
/**
* Protobuf type {@code Im.Scrm.Ww.Proto.DeviceAuthReqMessage}
*/
public static final class DeviceAuthReqMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Im.Scrm.Ww.Proto.DeviceAuthReqMessage)
DeviceAuthReqMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeviceAuthReqMessage.newBuilder() to construct.
private DeviceAuthReqMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeviceAuthReqMessage() {
authType_ = 0;
credential_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeviceAuthReqMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeviceAuthReqMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
authType_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
credential_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Im.Scrm.Ww.Proto.WDeviceAuthReq.internal_static_Im_Scrm_Ww_Proto_DeviceAuthReqMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return Im.Scrm.Ww.Proto.WDeviceAuthReq.internal_static_Im_Scrm_Ww_Proto_DeviceAuthReqMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.class, Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.Builder.class);
}
/**
* *认证方式枚举 ** * Protobuf enum {@code Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType} */ public enum EnumAuthType implements com.google.protobuf.ProtocolMessageEnum { /** *
*默认方式,默认使用 ** *
Default = 0;
*/
Default(0),
/**
* *设备码(用于手机客户端,此方式Credential应传入手机IMEI) ** *
DeviceCode = 1;
*/
DeviceCode(1),
/**
* *用户名密码方式(此方式Credential应传入base64(user:pwd)) ** *
Username = 2;
*/
Username(2),
/**
* *内部服务间通讯方式(此方式Credential可为空,服务器根据ip白名单来认证) ** *
InternalCode = 3;
*/
InternalCode(3),
UNRECOGNIZED(-1),
;
/**
* *默认方式,默认使用 ** *
Default = 0;
*/
public static final int Default_VALUE = 0;
/**
* *设备码(用于手机客户端,此方式Credential应传入手机IMEI) ** *
DeviceCode = 1;
*/
public static final int DeviceCode_VALUE = 1;
/**
* *用户名密码方式(此方式Credential应传入base64(user:pwd)) ** *
Username = 2;
*/
public static final int Username_VALUE = 2;
/**
* *内部服务间通讯方式(此方式Credential可为空,服务器根据ip白名单来认证) ** *
InternalCode = 3;
*/
public static final int InternalCode_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EnumAuthType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static EnumAuthType forNumber(int value) {
switch (value) {
case 0: return Default;
case 1: return DeviceCode;
case 2: return Username;
case 3: return InternalCode;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap*认证方式 ** *
.Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType AuthType = 1;
* @return The enum numeric value on the wire for authType.
*/
public int getAuthTypeValue() {
return authType_;
}
/**
* *认证方式 ** *
.Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType AuthType = 1;
* @return The authType.
*/
public Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.EnumAuthType getAuthType() {
@SuppressWarnings("deprecation")
Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.EnumAuthType result = Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.EnumAuthType.valueOf(authType_);
return result == null ? Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.EnumAuthType.UNRECOGNIZED : result;
}
public static final int CREDENTIAL_FIELD_NUMBER = 2;
private volatile java.lang.Object credential_;
/**
* *凭证信息(不同认证方式传入不同的凭证信息) ** *
string Credential = 2;
* @return The credential.
*/
public java.lang.String getCredential() {
java.lang.Object ref = credential_;
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();
credential_ = s;
return s;
}
}
/**
* *凭证信息(不同认证方式传入不同的凭证信息) ** *
string Credential = 2;
* @return The bytes for credential.
*/
public com.google.protobuf.ByteString
getCredentialBytes() {
java.lang.Object ref = credential_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
credential_ = 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 (authType_ != Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.EnumAuthType.Default.getNumber()) {
output.writeEnum(1, authType_);
}
if (!getCredentialBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, credential_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (authType_ != Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.EnumAuthType.Default.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, authType_);
}
if (!getCredentialBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, credential_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage)) {
return super.equals(obj);
}
Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage other = (Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage) obj;
if (authType_ != other.authType_) return false;
if (!getCredential()
.equals(other.getCredential())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + AUTHTYPE_FIELD_NUMBER;
hash = (53 * hash) + authType_;
hash = (37 * hash) + CREDENTIAL_FIELD_NUMBER;
hash = (53 * hash) + getCredential().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage 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 Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage 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 Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage 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(Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage 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 Im.Scrm.Ww.Proto.DeviceAuthReqMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder*认证方式 ** *
.Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType AuthType = 1;
* @return The enum numeric value on the wire for authType.
*/
public int getAuthTypeValue() {
return authType_;
}
/**
* *认证方式 ** *
.Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType AuthType = 1;
* @param value The enum numeric value on the wire for authType to set.
* @return This builder for chaining.
*/
public Builder setAuthTypeValue(int value) {
authType_ = value;
onChanged();
return this;
}
/**
* *认证方式 ** *
.Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType AuthType = 1;
* @return The authType.
*/
public Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.EnumAuthType getAuthType() {
@SuppressWarnings("deprecation")
Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.EnumAuthType result = Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.EnumAuthType.valueOf(authType_);
return result == null ? Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.EnumAuthType.UNRECOGNIZED : result;
}
/**
* *认证方式 ** *
.Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType AuthType = 1;
* @param value The authType to set.
* @return This builder for chaining.
*/
public Builder setAuthType(Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.EnumAuthType value) {
if (value == null) {
throw new NullPointerException();
}
authType_ = value.getNumber();
onChanged();
return this;
}
/**
* *认证方式 ** *
.Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType AuthType = 1;
* @return This builder for chaining.
*/
public Builder clearAuthType() {
authType_ = 0;
onChanged();
return this;
}
private java.lang.Object credential_ = "";
/**
* *凭证信息(不同认证方式传入不同的凭证信息) ** *
string Credential = 2;
* @return The credential.
*/
public java.lang.String getCredential() {
java.lang.Object ref = credential_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
credential_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *凭证信息(不同认证方式传入不同的凭证信息) ** *
string Credential = 2;
* @return The bytes for credential.
*/
public com.google.protobuf.ByteString
getCredentialBytes() {
java.lang.Object ref = credential_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
credential_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *凭证信息(不同认证方式传入不同的凭证信息) ** *
string Credential = 2;
* @param value The credential to set.
* @return This builder for chaining.
*/
public Builder setCredential(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
credential_ = value;
onChanged();
return this;
}
/**
* *凭证信息(不同认证方式传入不同的凭证信息) ** *
string Credential = 2;
* @return This builder for chaining.
*/
public Builder clearCredential() {
credential_ = getDefaultInstance().getCredential();
onChanged();
return this;
}
/**
* *凭证信息(不同认证方式传入不同的凭证信息) ** *
string Credential = 2;
* @param value The bytes for credential to set.
* @return This builder for chaining.
*/
public Builder setCredentialBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
credential_ = 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:Im.Scrm.Ww.Proto.DeviceAuthReqMessage)
}
// @@protoc_insertion_point(class_scope:Im.Scrm.Ww.Proto.DeviceAuthReqMessage)
private static final Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage();
}
public static Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser