// 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 internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< EnumAuthType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public EnumAuthType findValueByNumber(int number) { return EnumAuthType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.getDescriptor().getEnumTypes().get(0); } private static final EnumAuthType[] VALUES = values(); public static EnumAuthType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private EnumAuthType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType) } public static final int AUTHTYPE_FIELD_NUMBER = 1; private int authType_; /** *
     *认证方式
     * 
* * .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 implements // @@protoc_insertion_point(builder_implements:Im.Scrm.Ww.Proto.DeviceAuthReqMessage) Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessageOrBuilder { 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); } // Construct using Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); authType_ = 0; credential_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Im.Scrm.Ww.Proto.WDeviceAuthReq.internal_static_Im_Scrm_Ww_Proto_DeviceAuthReqMessage_descriptor; } @java.lang.Override public Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage getDefaultInstanceForType() { return Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.getDefaultInstance(); } @java.lang.Override public Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage build() { Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage buildPartial() { Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage result = new Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage(this); result.authType_ = authType_; result.credential_ = credential_; 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 Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage) { return mergeFrom((Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage other) { if (other == Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage.getDefaultInstance()) return this; if (other.authType_ != 0) { setAuthTypeValue(other.getAuthTypeValue()); } if (!other.getCredential().isEmpty()) { credential_ = other.credential_; onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int authType_ = 0; /** *
       *认证方式
       * 
* * .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 PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeviceAuthReqMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeviceAuthReqMessage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public Im.Scrm.Ww.Proto.WDeviceAuthReq.DeviceAuthReqMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Im_Scrm_Ww_Proto_DeviceAuthReqMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Im_Scrm_Ww_Proto_DeviceAuthReqMessage_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\024WDeviceAuthReq.proto\022\020Im.Scrm.Ww.Proto" + "\"\276\001\n\024DeviceAuthReqMessage\022E\n\010AuthType\030\001 " + "\001(\01623.Im.Scrm.Ww.Proto.DeviceAuthReqMess" + "age.EnumAuthType\022\022\n\nCredential\030\002 \001(\t\"K\n\014" + "EnumAuthType\022\013\n\007Default\020\000\022\016\n\nDeviceCode\020" + "\001\022\014\n\010Username\020\002\022\020\n\014InternalCode\020\003b\006proto" + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_Im_Scrm_Ww_Proto_DeviceAuthReqMessage_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Im_Scrm_Ww_Proto_DeviceAuthReqMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Im_Scrm_Ww_Proto_DeviceAuthReqMessage_descriptor, new java.lang.String[] { "AuthType", "Credential", }); } // @@protoc_insertion_point(outer_class_scope) }