cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal 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.GrpcAccessPrincipal}
*/
public final class GrpcAccessPrincipal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cn.herodotus.grpc.user.GrpcAccessPrincipal)
GrpcAccessPrincipalOrBuilder {
private static final long serialVersionUID = 0L;
// Use GrpcAccessPrincipal.newBuilder() to construct.
private GrpcAccessPrincipal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GrpcAccessPrincipal() {
code_ = "";
mobile_ = "";
appId_ = "";
encryptedData_ = "";
iv_ = "";
openId_ = "";
sessionKey_ = "";
unionId_ = "";
rawData_ = "";
signature_ = "";
authCode_ = "";
state_ = "";
authorizationCode_ = "";
authToken_ = "";
authVerifier_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GrpcAccessPrincipal();
}
@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_GrpcAccessPrincipal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.herodotus.stirrup.grpc.user.GrpcHerodotusUserServiceProto.internal_static_cn_herodotus_grpc_user_GrpcAccessPrincipal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal.class, cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal.Builder.class);
}
public static final int CODE_FIELD_NUMBER = 1;
private volatile java.lang.Object code_;
/**
* string code = 1;
* @return The code.
*/
@java.lang.Override
public java.lang.String getCode() {
java.lang.Object ref = code_;
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();
code_ = s;
return s;
}
}
/**
* string code = 1;
* @return The bytes for code.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCodeBytes() {
java.lang.Object ref = code_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
code_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MOBILE_FIELD_NUMBER = 2;
private volatile java.lang.Object mobile_;
/**
* string mobile = 2;
* @return The mobile.
*/
@java.lang.Override
public java.lang.String getMobile() {
java.lang.Object ref = mobile_;
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();
mobile_ = s;
return s;
}
}
/**
* string mobile = 2;
* @return The bytes for mobile.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMobileBytes() {
java.lang.Object ref = mobile_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mobile_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APPID_FIELD_NUMBER = 3;
private volatile java.lang.Object appId_;
/**
* string appId = 3;
* @return The appId.
*/
@java.lang.Override
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
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();
appId_ = s;
return s;
}
}
/**
* string appId = 3;
* @return The bytes for appId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENCRYPTEDDATA_FIELD_NUMBER = 4;
private volatile java.lang.Object encryptedData_;
/**
* string encryptedData = 4;
* @return The encryptedData.
*/
@java.lang.Override
public java.lang.String getEncryptedData() {
java.lang.Object ref = encryptedData_;
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();
encryptedData_ = s;
return s;
}
}
/**
* string encryptedData = 4;
* @return The bytes for encryptedData.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEncryptedDataBytes() {
java.lang.Object ref = encryptedData_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
encryptedData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IV_FIELD_NUMBER = 5;
private volatile java.lang.Object iv_;
/**
* string iv = 5;
* @return The iv.
*/
@java.lang.Override
public java.lang.String getIv() {
java.lang.Object ref = iv_;
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();
iv_ = s;
return s;
}
}
/**
* string iv = 5;
* @return The bytes for iv.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIvBytes() {
java.lang.Object ref = iv_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
iv_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPENID_FIELD_NUMBER = 6;
private volatile java.lang.Object openId_;
/**
* string openId = 6;
* @return The openId.
*/
@java.lang.Override
public java.lang.String getOpenId() {
java.lang.Object ref = openId_;
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();
openId_ = s;
return s;
}
}
/**
* string openId = 6;
* @return The bytes for openId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOpenIdBytes() {
java.lang.Object ref = openId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
openId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SESSIONKEY_FIELD_NUMBER = 7;
private volatile java.lang.Object sessionKey_;
/**
* string sessionKey = 7;
* @return The sessionKey.
*/
@java.lang.Override
public java.lang.String getSessionKey() {
java.lang.Object ref = sessionKey_;
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();
sessionKey_ = s;
return s;
}
}
/**
* string sessionKey = 7;
* @return The bytes for sessionKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionKeyBytes() {
java.lang.Object ref = sessionKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UNIONID_FIELD_NUMBER = 8;
private volatile java.lang.Object unionId_;
/**
* string unionId = 8;
* @return The unionId.
*/
@java.lang.Override
public java.lang.String getUnionId() {
java.lang.Object ref = unionId_;
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();
unionId_ = s;
return s;
}
}
/**
* string unionId = 8;
* @return The bytes for unionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUnionIdBytes() {
java.lang.Object ref = unionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RAWDATA_FIELD_NUMBER = 9;
private volatile java.lang.Object rawData_;
/**
* string rawData = 9;
* @return The rawData.
*/
@java.lang.Override
public java.lang.String getRawData() {
java.lang.Object ref = rawData_;
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();
rawData_ = s;
return s;
}
}
/**
* string rawData = 9;
* @return The bytes for rawData.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRawDataBytes() {
java.lang.Object ref = rawData_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rawData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SIGNATURE_FIELD_NUMBER = 10;
private volatile java.lang.Object signature_;
/**
* string signature = 10;
* @return The signature.
*/
@java.lang.Override
public java.lang.String getSignature() {
java.lang.Object ref = signature_;
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();
signature_ = s;
return s;
}
}
/**
* string signature = 10;
* @return The bytes for signature.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSignatureBytes() {
java.lang.Object ref = signature_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signature_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUTHCODE_FIELD_NUMBER = 11;
private volatile java.lang.Object authCode_;
/**
* string authCode = 11;
* @return The authCode.
*/
@java.lang.Override
public java.lang.String getAuthCode() {
java.lang.Object ref = authCode_;
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();
authCode_ = s;
return s;
}
}
/**
* string authCode = 11;
* @return The bytes for authCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAuthCodeBytes() {
java.lang.Object ref = authCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
authCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATE_FIELD_NUMBER = 12;
private volatile java.lang.Object state_;
/**
* string state = 12;
* @return The state.
*/
@java.lang.Override
public java.lang.String getState() {
java.lang.Object ref = state_;
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();
state_ = s;
return s;
}
}
/**
* string state = 12;
* @return The bytes for state.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUTHORIZATIONCODE_FIELD_NUMBER = 13;
private volatile java.lang.Object authorizationCode_;
/**
* string authorizationCode = 13;
* @return The authorizationCode.
*/
@java.lang.Override
public java.lang.String getAuthorizationCode() {
java.lang.Object ref = authorizationCode_;
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();
authorizationCode_ = s;
return s;
}
}
/**
* string authorizationCode = 13;
* @return The bytes for authorizationCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAuthorizationCodeBytes() {
java.lang.Object ref = authorizationCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
authorizationCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUTHTOKEN_FIELD_NUMBER = 14;
private volatile java.lang.Object authToken_;
/**
* string authToken = 14;
* @return The authToken.
*/
@java.lang.Override
public java.lang.String getAuthToken() {
java.lang.Object ref = authToken_;
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();
authToken_ = s;
return s;
}
}
/**
* string authToken = 14;
* @return The bytes for authToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAuthTokenBytes() {
java.lang.Object ref = authToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
authToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUTHVERIFIER_FIELD_NUMBER = 15;
private volatile java.lang.Object authVerifier_;
/**
* string authVerifier = 15;
* @return The authVerifier.
*/
@java.lang.Override
public java.lang.String getAuthVerifier() {
java.lang.Object ref = authVerifier_;
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();
authVerifier_ = s;
return s;
}
}
/**
* string authVerifier = 15;
* @return The bytes for authVerifier.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAuthVerifierBytes() {
java.lang.Object ref = authVerifier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
authVerifier_ = 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(code_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mobile_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mobile_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, appId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptedData_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, encryptedData_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iv_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, iv_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(openId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, openId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionKey_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, sessionKey_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, unionId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rawData_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, rawData_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, signature_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, authCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizationCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, authorizationCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, authToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authVerifier_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, authVerifier_);
}
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(code_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mobile_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mobile_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, appId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptedData_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, encryptedData_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iv_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, iv_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(openId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, openId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionKey_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, sessionKey_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, unionId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rawData_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, rawData_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, signature_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, authCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizationCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, authorizationCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, authToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authVerifier_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, authVerifier_);
}
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.GrpcAccessPrincipal)) {
return super.equals(obj);
}
cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal other = (cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal) obj;
if (!getCode()
.equals(other.getCode())) return false;
if (!getMobile()
.equals(other.getMobile())) return false;
if (!getAppId()
.equals(other.getAppId())) return false;
if (!getEncryptedData()
.equals(other.getEncryptedData())) return false;
if (!getIv()
.equals(other.getIv())) return false;
if (!getOpenId()
.equals(other.getOpenId())) return false;
if (!getSessionKey()
.equals(other.getSessionKey())) return false;
if (!getUnionId()
.equals(other.getUnionId())) return false;
if (!getRawData()
.equals(other.getRawData())) return false;
if (!getSignature()
.equals(other.getSignature())) return false;
if (!getAuthCode()
.equals(other.getAuthCode())) return false;
if (!getState()
.equals(other.getState())) return false;
if (!getAuthorizationCode()
.equals(other.getAuthorizationCode())) return false;
if (!getAuthToken()
.equals(other.getAuthToken())) return false;
if (!getAuthVerifier()
.equals(other.getAuthVerifier())) 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) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode().hashCode();
hash = (37 * hash) + MOBILE_FIELD_NUMBER;
hash = (53 * hash) + getMobile().hashCode();
hash = (37 * hash) + APPID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
hash = (37 * hash) + ENCRYPTEDDATA_FIELD_NUMBER;
hash = (53 * hash) + getEncryptedData().hashCode();
hash = (37 * hash) + IV_FIELD_NUMBER;
hash = (53 * hash) + getIv().hashCode();
hash = (37 * hash) + OPENID_FIELD_NUMBER;
hash = (53 * hash) + getOpenId().hashCode();
hash = (37 * hash) + SESSIONKEY_FIELD_NUMBER;
hash = (53 * hash) + getSessionKey().hashCode();
hash = (37 * hash) + UNIONID_FIELD_NUMBER;
hash = (53 * hash) + getUnionId().hashCode();
hash = (37 * hash) + RAWDATA_FIELD_NUMBER;
hash = (53 * hash) + getRawData().hashCode();
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().hashCode();
hash = (37 * hash) + AUTHCODE_FIELD_NUMBER;
hash = (53 * hash) + getAuthCode().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + getState().hashCode();
hash = (37 * hash) + AUTHORIZATIONCODE_FIELD_NUMBER;
hash = (53 * hash) + getAuthorizationCode().hashCode();
hash = (37 * hash) + AUTHTOKEN_FIELD_NUMBER;
hash = (53 * hash) + getAuthToken().hashCode();
hash = (37 * hash) + AUTHVERIFIER_FIELD_NUMBER;
hash = (53 * hash) + getAuthVerifier().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal 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.GrpcAccessPrincipal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal 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.GrpcAccessPrincipal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal 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.GrpcAccessPrincipal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal 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.GrpcAccessPrincipal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal 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.GrpcAccessPrincipal 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.GrpcAccessPrincipal 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.GrpcAccessPrincipal 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.GrpcAccessPrincipal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cn.herodotus.grpc.user.GrpcAccessPrincipal)
cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.herodotus.stirrup.grpc.user.GrpcHerodotusUserServiceProto.internal_static_cn_herodotus_grpc_user_GrpcAccessPrincipal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.herodotus.stirrup.grpc.user.GrpcHerodotusUserServiceProto.internal_static_cn_herodotus_grpc_user_GrpcAccessPrincipal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal.class, cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal.Builder.class);
}
// Construct using cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
code_ = "";
mobile_ = "";
appId_ = "";
encryptedData_ = "";
iv_ = "";
openId_ = "";
sessionKey_ = "";
unionId_ = "";
rawData_ = "";
signature_ = "";
authCode_ = "";
state_ = "";
authorizationCode_ = "";
authToken_ = "";
authVerifier_ = "";
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_GrpcAccessPrincipal_descriptor;
}
@java.lang.Override
public cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal getDefaultInstanceForType() {
return cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal.getDefaultInstance();
}
@java.lang.Override
public cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal build() {
cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal buildPartial() {
cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal result = new cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal(this);
result.code_ = code_;
result.mobile_ = mobile_;
result.appId_ = appId_;
result.encryptedData_ = encryptedData_;
result.iv_ = iv_;
result.openId_ = openId_;
result.sessionKey_ = sessionKey_;
result.unionId_ = unionId_;
result.rawData_ = rawData_;
result.signature_ = signature_;
result.authCode_ = authCode_;
result.state_ = state_;
result.authorizationCode_ = authorizationCode_;
result.authToken_ = authToken_;
result.authVerifier_ = authVerifier_;
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.GrpcAccessPrincipal) {
return mergeFrom((cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal other) {
if (other == cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal.getDefaultInstance()) return this;
if (!other.getCode().isEmpty()) {
code_ = other.code_;
onChanged();
}
if (!other.getMobile().isEmpty()) {
mobile_ = other.mobile_;
onChanged();
}
if (!other.getAppId().isEmpty()) {
appId_ = other.appId_;
onChanged();
}
if (!other.getEncryptedData().isEmpty()) {
encryptedData_ = other.encryptedData_;
onChanged();
}
if (!other.getIv().isEmpty()) {
iv_ = other.iv_;
onChanged();
}
if (!other.getOpenId().isEmpty()) {
openId_ = other.openId_;
onChanged();
}
if (!other.getSessionKey().isEmpty()) {
sessionKey_ = other.sessionKey_;
onChanged();
}
if (!other.getUnionId().isEmpty()) {
unionId_ = other.unionId_;
onChanged();
}
if (!other.getRawData().isEmpty()) {
rawData_ = other.rawData_;
onChanged();
}
if (!other.getSignature().isEmpty()) {
signature_ = other.signature_;
onChanged();
}
if (!other.getAuthCode().isEmpty()) {
authCode_ = other.authCode_;
onChanged();
}
if (!other.getState().isEmpty()) {
state_ = other.state_;
onChanged();
}
if (!other.getAuthorizationCode().isEmpty()) {
authorizationCode_ = other.authorizationCode_;
onChanged();
}
if (!other.getAuthToken().isEmpty()) {
authToken_ = other.authToken_;
onChanged();
}
if (!other.getAuthVerifier().isEmpty()) {
authVerifier_ = other.authVerifier_;
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: {
code_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
mobile_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
appId_ = input.readStringRequireUtf8();
break;
} // case 26
case 34: {
encryptedData_ = input.readStringRequireUtf8();
break;
} // case 34
case 42: {
iv_ = input.readStringRequireUtf8();
break;
} // case 42
case 50: {
openId_ = input.readStringRequireUtf8();
break;
} // case 50
case 58: {
sessionKey_ = input.readStringRequireUtf8();
break;
} // case 58
case 66: {
unionId_ = input.readStringRequireUtf8();
break;
} // case 66
case 74: {
rawData_ = input.readStringRequireUtf8();
break;
} // case 74
case 82: {
signature_ = input.readStringRequireUtf8();
break;
} // case 82
case 90: {
authCode_ = input.readStringRequireUtf8();
break;
} // case 90
case 98: {
state_ = input.readStringRequireUtf8();
break;
} // case 98
case 106: {
authorizationCode_ = input.readStringRequireUtf8();
break;
} // case 106
case 114: {
authToken_ = input.readStringRequireUtf8();
break;
} // case 114
case 122: {
authVerifier_ = input.readStringRequireUtf8();
break;
} // case 122
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 java.lang.Object code_ = "";
/**
* string code = 1;
* @return The code.
*/
public java.lang.String getCode() {
java.lang.Object ref = code_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
code_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string code = 1;
* @return The bytes for code.
*/
public com.google.protobuf.ByteString
getCodeBytes() {
java.lang.Object ref = code_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
code_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string code = 1;
* @param value The code to set.
* @return This builder for chaining.
*/
public Builder setCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
code_ = value;
onChanged();
return this;
}
/**
* string code = 1;
* @return This builder for chaining.
*/
public Builder clearCode() {
code_ = getDefaultInstance().getCode();
onChanged();
return this;
}
/**
* string code = 1;
* @param value The bytes for code to set.
* @return This builder for chaining.
*/
public Builder setCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
code_ = value;
onChanged();
return this;
}
private java.lang.Object mobile_ = "";
/**
* string mobile = 2;
* @return The mobile.
*/
public java.lang.String getMobile() {
java.lang.Object ref = mobile_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mobile_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string mobile = 2;
* @return The bytes for mobile.
*/
public com.google.protobuf.ByteString
getMobileBytes() {
java.lang.Object ref = mobile_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mobile_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string mobile = 2;
* @param value The mobile to set.
* @return This builder for chaining.
*/
public Builder setMobile(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
mobile_ = value;
onChanged();
return this;
}
/**
* string mobile = 2;
* @return This builder for chaining.
*/
public Builder clearMobile() {
mobile_ = getDefaultInstance().getMobile();
onChanged();
return this;
}
/**
* string mobile = 2;
* @param value The bytes for mobile to set.
* @return This builder for chaining.
*/
public Builder setMobileBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
mobile_ = value;
onChanged();
return this;
}
private java.lang.Object appId_ = "";
/**
* string appId = 3;
* @return The appId.
*/
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
appId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string appId = 3;
* @return The bytes for appId.
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string appId = 3;
* @param value The appId to set.
* @return This builder for chaining.
*/
public Builder setAppId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
appId_ = value;
onChanged();
return this;
}
/**
* string appId = 3;
* @return This builder for chaining.
*/
public Builder clearAppId() {
appId_ = getDefaultInstance().getAppId();
onChanged();
return this;
}
/**
* string appId = 3;
* @param value The bytes for appId to set.
* @return This builder for chaining.
*/
public Builder setAppIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
appId_ = value;
onChanged();
return this;
}
private java.lang.Object encryptedData_ = "";
/**
* string encryptedData = 4;
* @return The encryptedData.
*/
public java.lang.String getEncryptedData() {
java.lang.Object ref = encryptedData_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
encryptedData_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string encryptedData = 4;
* @return The bytes for encryptedData.
*/
public com.google.protobuf.ByteString
getEncryptedDataBytes() {
java.lang.Object ref = encryptedData_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
encryptedData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string encryptedData = 4;
* @param value The encryptedData to set.
* @return This builder for chaining.
*/
public Builder setEncryptedData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
encryptedData_ = value;
onChanged();
return this;
}
/**
* string encryptedData = 4;
* @return This builder for chaining.
*/
public Builder clearEncryptedData() {
encryptedData_ = getDefaultInstance().getEncryptedData();
onChanged();
return this;
}
/**
* string encryptedData = 4;
* @param value The bytes for encryptedData to set.
* @return This builder for chaining.
*/
public Builder setEncryptedDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
encryptedData_ = value;
onChanged();
return this;
}
private java.lang.Object iv_ = "";
/**
* string iv = 5;
* @return The iv.
*/
public java.lang.String getIv() {
java.lang.Object ref = iv_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
iv_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string iv = 5;
* @return The bytes for iv.
*/
public com.google.protobuf.ByteString
getIvBytes() {
java.lang.Object ref = iv_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
iv_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string iv = 5;
* @param value The iv to set.
* @return This builder for chaining.
*/
public Builder setIv(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
iv_ = value;
onChanged();
return this;
}
/**
* string iv = 5;
* @return This builder for chaining.
*/
public Builder clearIv() {
iv_ = getDefaultInstance().getIv();
onChanged();
return this;
}
/**
* string iv = 5;
* @param value The bytes for iv to set.
* @return This builder for chaining.
*/
public Builder setIvBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
iv_ = value;
onChanged();
return this;
}
private java.lang.Object openId_ = "";
/**
* string openId = 6;
* @return The openId.
*/
public java.lang.String getOpenId() {
java.lang.Object ref = openId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
openId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string openId = 6;
* @return The bytes for openId.
*/
public com.google.protobuf.ByteString
getOpenIdBytes() {
java.lang.Object ref = openId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
openId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string openId = 6;
* @param value The openId to set.
* @return This builder for chaining.
*/
public Builder setOpenId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
openId_ = value;
onChanged();
return this;
}
/**
* string openId = 6;
* @return This builder for chaining.
*/
public Builder clearOpenId() {
openId_ = getDefaultInstance().getOpenId();
onChanged();
return this;
}
/**
* string openId = 6;
* @param value The bytes for openId to set.
* @return This builder for chaining.
*/
public Builder setOpenIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
openId_ = value;
onChanged();
return this;
}
private java.lang.Object sessionKey_ = "";
/**
* string sessionKey = 7;
* @return The sessionKey.
*/
public java.lang.String getSessionKey() {
java.lang.Object ref = sessionKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string sessionKey = 7;
* @return The bytes for sessionKey.
*/
public com.google.protobuf.ByteString
getSessionKeyBytes() {
java.lang.Object ref = sessionKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string sessionKey = 7;
* @param value The sessionKey to set.
* @return This builder for chaining.
*/
public Builder setSessionKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sessionKey_ = value;
onChanged();
return this;
}
/**
* string sessionKey = 7;
* @return This builder for chaining.
*/
public Builder clearSessionKey() {
sessionKey_ = getDefaultInstance().getSessionKey();
onChanged();
return this;
}
/**
* string sessionKey = 7;
* @param value The bytes for sessionKey to set.
* @return This builder for chaining.
*/
public Builder setSessionKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sessionKey_ = value;
onChanged();
return this;
}
private java.lang.Object unionId_ = "";
/**
* string unionId = 8;
* @return The unionId.
*/
public java.lang.String getUnionId() {
java.lang.Object ref = unionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
unionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string unionId = 8;
* @return The bytes for unionId.
*/
public com.google.protobuf.ByteString
getUnionIdBytes() {
java.lang.Object ref = unionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string unionId = 8;
* @param value The unionId to set.
* @return This builder for chaining.
*/
public Builder setUnionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
unionId_ = value;
onChanged();
return this;
}
/**
* string unionId = 8;
* @return This builder for chaining.
*/
public Builder clearUnionId() {
unionId_ = getDefaultInstance().getUnionId();
onChanged();
return this;
}
/**
* string unionId = 8;
* @param value The bytes for unionId to set.
* @return This builder for chaining.
*/
public Builder setUnionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
unionId_ = value;
onChanged();
return this;
}
private java.lang.Object rawData_ = "";
/**
* string rawData = 9;
* @return The rawData.
*/
public java.lang.String getRawData() {
java.lang.Object ref = rawData_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rawData_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string rawData = 9;
* @return The bytes for rawData.
*/
public com.google.protobuf.ByteString
getRawDataBytes() {
java.lang.Object ref = rawData_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rawData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string rawData = 9;
* @param value The rawData to set.
* @return This builder for chaining.
*/
public Builder setRawData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
rawData_ = value;
onChanged();
return this;
}
/**
* string rawData = 9;
* @return This builder for chaining.
*/
public Builder clearRawData() {
rawData_ = getDefaultInstance().getRawData();
onChanged();
return this;
}
/**
* string rawData = 9;
* @param value The bytes for rawData to set.
* @return This builder for chaining.
*/
public Builder setRawDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
rawData_ = value;
onChanged();
return this;
}
private java.lang.Object signature_ = "";
/**
* string signature = 10;
* @return The signature.
*/
public java.lang.String getSignature() {
java.lang.Object ref = signature_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
signature_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string signature = 10;
* @return The bytes for signature.
*/
public com.google.protobuf.ByteString
getSignatureBytes() {
java.lang.Object ref = signature_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signature_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string signature = 10;
* @param value The signature to set.
* @return This builder for chaining.
*/
public Builder setSignature(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
signature_ = value;
onChanged();
return this;
}
/**
* string signature = 10;
* @return This builder for chaining.
*/
public Builder clearSignature() {
signature_ = getDefaultInstance().getSignature();
onChanged();
return this;
}
/**
* string signature = 10;
* @param value The bytes for signature to set.
* @return This builder for chaining.
*/
public Builder setSignatureBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
signature_ = value;
onChanged();
return this;
}
private java.lang.Object authCode_ = "";
/**
* string authCode = 11;
* @return The authCode.
*/
public java.lang.String getAuthCode() {
java.lang.Object ref = authCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
authCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string authCode = 11;
* @return The bytes for authCode.
*/
public com.google.protobuf.ByteString
getAuthCodeBytes() {
java.lang.Object ref = authCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
authCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string authCode = 11;
* @param value The authCode to set.
* @return This builder for chaining.
*/
public Builder setAuthCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
authCode_ = value;
onChanged();
return this;
}
/**
* string authCode = 11;
* @return This builder for chaining.
*/
public Builder clearAuthCode() {
authCode_ = getDefaultInstance().getAuthCode();
onChanged();
return this;
}
/**
* string authCode = 11;
* @param value The bytes for authCode to set.
* @return This builder for chaining.
*/
public Builder setAuthCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
authCode_ = value;
onChanged();
return this;
}
private java.lang.Object state_ = "";
/**
* string state = 12;
* @return The state.
*/
public java.lang.String getState() {
java.lang.Object ref = state_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
state_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string state = 12;
* @return The bytes for state.
*/
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string state = 12;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value;
onChanged();
return this;
}
/**
* string state = 12;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = getDefaultInstance().getState();
onChanged();
return this;
}
/**
* string state = 12;
* @param value The bytes for state to set.
* @return This builder for chaining.
*/
public Builder setStateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
state_ = value;
onChanged();
return this;
}
private java.lang.Object authorizationCode_ = "";
/**
* string authorizationCode = 13;
* @return The authorizationCode.
*/
public java.lang.String getAuthorizationCode() {
java.lang.Object ref = authorizationCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
authorizationCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string authorizationCode = 13;
* @return The bytes for authorizationCode.
*/
public com.google.protobuf.ByteString
getAuthorizationCodeBytes() {
java.lang.Object ref = authorizationCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
authorizationCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string authorizationCode = 13;
* @param value The authorizationCode to set.
* @return This builder for chaining.
*/
public Builder setAuthorizationCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
authorizationCode_ = value;
onChanged();
return this;
}
/**
* string authorizationCode = 13;
* @return This builder for chaining.
*/
public Builder clearAuthorizationCode() {
authorizationCode_ = getDefaultInstance().getAuthorizationCode();
onChanged();
return this;
}
/**
* string authorizationCode = 13;
* @param value The bytes for authorizationCode to set.
* @return This builder for chaining.
*/
public Builder setAuthorizationCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
authorizationCode_ = value;
onChanged();
return this;
}
private java.lang.Object authToken_ = "";
/**
* string authToken = 14;
* @return The authToken.
*/
public java.lang.String getAuthToken() {
java.lang.Object ref = authToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
authToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string authToken = 14;
* @return The bytes for authToken.
*/
public com.google.protobuf.ByteString
getAuthTokenBytes() {
java.lang.Object ref = authToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
authToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string authToken = 14;
* @param value The authToken to set.
* @return This builder for chaining.
*/
public Builder setAuthToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
authToken_ = value;
onChanged();
return this;
}
/**
* string authToken = 14;
* @return This builder for chaining.
*/
public Builder clearAuthToken() {
authToken_ = getDefaultInstance().getAuthToken();
onChanged();
return this;
}
/**
* string authToken = 14;
* @param value The bytes for authToken to set.
* @return This builder for chaining.
*/
public Builder setAuthTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
authToken_ = value;
onChanged();
return this;
}
private java.lang.Object authVerifier_ = "";
/**
* string authVerifier = 15;
* @return The authVerifier.
*/
public java.lang.String getAuthVerifier() {
java.lang.Object ref = authVerifier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
authVerifier_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string authVerifier = 15;
* @return The bytes for authVerifier.
*/
public com.google.protobuf.ByteString
getAuthVerifierBytes() {
java.lang.Object ref = authVerifier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
authVerifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string authVerifier = 15;
* @param value The authVerifier to set.
* @return This builder for chaining.
*/
public Builder setAuthVerifier(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
authVerifier_ = value;
onChanged();
return this;
}
/**
* string authVerifier = 15;
* @return This builder for chaining.
*/
public Builder clearAuthVerifier() {
authVerifier_ = getDefaultInstance().getAuthVerifier();
onChanged();
return this;
}
/**
* string authVerifier = 15;
* @param value The bytes for authVerifier to set.
* @return This builder for chaining.
*/
public Builder setAuthVerifierBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
authVerifier_ = 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.GrpcAccessPrincipal)
}
// @@protoc_insertion_point(class_scope:cn.herodotus.grpc.user.GrpcAccessPrincipal)
private static final cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal();
}
public static cn.herodotus.stirrup.grpc.user.GrpcAccessPrincipal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GrpcAccessPrincipal 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.GrpcAccessPrincipal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy