WindChat/windchat-protobuf/src/main/java/com/akaxin/proto/core/DeviceProto.java

1809 lines
60 KiB
Java
Executable File

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: core/device.proto
package com.akaxin.proto.core;
public final class DeviceProto {
private DeviceProto() {}
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 DeviceProfileOrBuilder extends
// @@protoc_insertion_point(interface_extends:core.DeviceProfile)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string device_id = 1;</code>
*/
java.lang.String getDeviceId();
/**
* <code>string device_id = 1;</code>
*/
com.google.protobuf.ByteString
getDeviceIdBytes();
/**
* <code>string device_name = 2;</code>
*/
java.lang.String getDeviceName();
/**
* <code>string device_name = 2;</code>
*/
com.google.protobuf.ByteString
getDeviceNameBytes();
/**
* <code>string user_device_pubk = 3;</code>
*/
java.lang.String getUserDevicePubk();
/**
* <code>string user_device_pubk = 3;</code>
*/
com.google.protobuf.ByteString
getUserDevicePubkBytes();
/**
* <code>int64 last_login_time = 4;</code>
*/
long getLastLoginTime();
}
/**
* <pre>
*设备的详细信息
* </pre>
*
* Protobuf type {@code core.DeviceProfile}
*/
public static final class DeviceProfile extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:core.DeviceProfile)
DeviceProfileOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeviceProfile.newBuilder() to construct.
private DeviceProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private DeviceProfile() {
deviceId_ = "";
deviceName_ = "";
userDevicePubk_ = "";
lastLoginTime_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeviceProfile(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
deviceId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
deviceName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
userDevicePubk_ = s;
break;
}
case 32: {
lastLoginTime_ = input.readInt64();
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 com.akaxin.proto.core.DeviceProto.internal_static_core_DeviceProfile_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.core.DeviceProto.internal_static_core_DeviceProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.core.DeviceProto.DeviceProfile.class, com.akaxin.proto.core.DeviceProto.DeviceProfile.Builder.class);
}
public static final int DEVICE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object deviceId_;
/**
* <code>string device_id = 1;</code>
*/
public java.lang.String getDeviceId() {
java.lang.Object ref = deviceId_;
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();
deviceId_ = s;
return s;
}
}
/**
* <code>string device_id = 1;</code>
*/
public com.google.protobuf.ByteString
getDeviceIdBytes() {
java.lang.Object ref = deviceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEVICE_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object deviceName_;
/**
* <code>string device_name = 2;</code>
*/
public java.lang.String getDeviceName() {
java.lang.Object ref = deviceName_;
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();
deviceName_ = s;
return s;
}
}
/**
* <code>string device_name = 2;</code>
*/
public com.google.protobuf.ByteString
getDeviceNameBytes() {
java.lang.Object ref = deviceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_DEVICE_PUBK_FIELD_NUMBER = 3;
private volatile java.lang.Object userDevicePubk_;
/**
* <code>string user_device_pubk = 3;</code>
*/
public java.lang.String getUserDevicePubk() {
java.lang.Object ref = userDevicePubk_;
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();
userDevicePubk_ = s;
return s;
}
}
/**
* <code>string user_device_pubk = 3;</code>
*/
public com.google.protobuf.ByteString
getUserDevicePubkBytes() {
java.lang.Object ref = userDevicePubk_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userDevicePubk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAST_LOGIN_TIME_FIELD_NUMBER = 4;
private long lastLoginTime_;
/**
* <code>int64 last_login_time = 4;</code>
*/
public long getLastLoginTime() {
return lastLoginTime_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getDeviceIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_);
}
if (!getDeviceNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceName_);
}
if (!getUserDevicePubkBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userDevicePubk_);
}
if (lastLoginTime_ != 0L) {
output.writeInt64(4, lastLoginTime_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getDeviceIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_);
}
if (!getDeviceNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceName_);
}
if (!getUserDevicePubkBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userDevicePubk_);
}
if (lastLoginTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, lastLoginTime_);
}
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 com.akaxin.proto.core.DeviceProto.DeviceProfile)) {
return super.equals(obj);
}
com.akaxin.proto.core.DeviceProto.DeviceProfile other = (com.akaxin.proto.core.DeviceProto.DeviceProfile) obj;
boolean result = true;
result = result && getDeviceId()
.equals(other.getDeviceId());
result = result && getDeviceName()
.equals(other.getDeviceName());
result = result && getUserDevicePubk()
.equals(other.getUserDevicePubk());
result = result && (getLastLoginTime()
== other.getLastLoginTime());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DEVICE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDeviceId().hashCode();
hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDeviceName().hashCode();
hash = (37 * hash) + USER_DEVICE_PUBK_FIELD_NUMBER;
hash = (53 * hash) + getUserDevicePubk().hashCode();
hash = (37 * hash) + LAST_LOGIN_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastLoginTime());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.core.DeviceProto.DeviceProfile parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.DeviceProto.DeviceProfile parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.DeviceProto.DeviceProfile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.DeviceProto.DeviceProfile parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.DeviceProto.DeviceProfile parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.DeviceProto.DeviceProfile parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.DeviceProto.DeviceProfile parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.DeviceProto.DeviceProfile 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 com.akaxin.proto.core.DeviceProto.DeviceProfile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.DeviceProto.DeviceProfile 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 com.akaxin.proto.core.DeviceProto.DeviceProfile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.DeviceProto.DeviceProfile parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.akaxin.proto.core.DeviceProto.DeviceProfile prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
* <pre>
*设备的详细信息
* </pre>
*
* Protobuf type {@code core.DeviceProfile}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:core.DeviceProfile)
com.akaxin.proto.core.DeviceProto.DeviceProfileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.akaxin.proto.core.DeviceProto.internal_static_core_DeviceProfile_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.core.DeviceProto.internal_static_core_DeviceProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.core.DeviceProto.DeviceProfile.class, com.akaxin.proto.core.DeviceProto.DeviceProfile.Builder.class);
}
// Construct using com.akaxin.proto.core.DeviceProto.DeviceProfile.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
deviceId_ = "";
deviceName_ = "";
userDevicePubk_ = "";
lastLoginTime_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.akaxin.proto.core.DeviceProto.internal_static_core_DeviceProfile_descriptor;
}
public com.akaxin.proto.core.DeviceProto.DeviceProfile getDefaultInstanceForType() {
return com.akaxin.proto.core.DeviceProto.DeviceProfile.getDefaultInstance();
}
public com.akaxin.proto.core.DeviceProto.DeviceProfile build() {
com.akaxin.proto.core.DeviceProto.DeviceProfile result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.akaxin.proto.core.DeviceProto.DeviceProfile buildPartial() {
com.akaxin.proto.core.DeviceProto.DeviceProfile result = new com.akaxin.proto.core.DeviceProto.DeviceProfile(this);
result.deviceId_ = deviceId_;
result.deviceName_ = deviceName_;
result.userDevicePubk_ = userDevicePubk_;
result.lastLoginTime_ = lastLoginTime_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.akaxin.proto.core.DeviceProto.DeviceProfile) {
return mergeFrom((com.akaxin.proto.core.DeviceProto.DeviceProfile)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.akaxin.proto.core.DeviceProto.DeviceProfile other) {
if (other == com.akaxin.proto.core.DeviceProto.DeviceProfile.getDefaultInstance()) return this;
if (!other.getDeviceId().isEmpty()) {
deviceId_ = other.deviceId_;
onChanged();
}
if (!other.getDeviceName().isEmpty()) {
deviceName_ = other.deviceName_;
onChanged();
}
if (!other.getUserDevicePubk().isEmpty()) {
userDevicePubk_ = other.userDevicePubk_;
onChanged();
}
if (other.getLastLoginTime() != 0L) {
setLastLoginTime(other.getLastLoginTime());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.akaxin.proto.core.DeviceProto.DeviceProfile parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.akaxin.proto.core.DeviceProto.DeviceProfile) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object deviceId_ = "";
/**
* <code>string device_id = 1;</code>
*/
public java.lang.String getDeviceId() {
java.lang.Object ref = deviceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string device_id = 1;</code>
*/
public com.google.protobuf.ByteString
getDeviceIdBytes() {
java.lang.Object ref = deviceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string device_id = 1;</code>
*/
public Builder setDeviceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
deviceId_ = value;
onChanged();
return this;
}
/**
* <code>string device_id = 1;</code>
*/
public Builder clearDeviceId() {
deviceId_ = getDefaultInstance().getDeviceId();
onChanged();
return this;
}
/**
* <code>string device_id = 1;</code>
*/
public Builder setDeviceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deviceId_ = value;
onChanged();
return this;
}
private java.lang.Object deviceName_ = "";
/**
* <code>string device_name = 2;</code>
*/
public java.lang.String getDeviceName() {
java.lang.Object ref = deviceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string device_name = 2;</code>
*/
public com.google.protobuf.ByteString
getDeviceNameBytes() {
java.lang.Object ref = deviceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string device_name = 2;</code>
*/
public Builder setDeviceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
deviceName_ = value;
onChanged();
return this;
}
/**
* <code>string device_name = 2;</code>
*/
public Builder clearDeviceName() {
deviceName_ = getDefaultInstance().getDeviceName();
onChanged();
return this;
}
/**
* <code>string device_name = 2;</code>
*/
public Builder setDeviceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deviceName_ = value;
onChanged();
return this;
}
private java.lang.Object userDevicePubk_ = "";
/**
* <code>string user_device_pubk = 3;</code>
*/
public java.lang.String getUserDevicePubk() {
java.lang.Object ref = userDevicePubk_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userDevicePubk_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string user_device_pubk = 3;</code>
*/
public com.google.protobuf.ByteString
getUserDevicePubkBytes() {
java.lang.Object ref = userDevicePubk_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userDevicePubk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string user_device_pubk = 3;</code>
*/
public Builder setUserDevicePubk(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userDevicePubk_ = value;
onChanged();
return this;
}
/**
* <code>string user_device_pubk = 3;</code>
*/
public Builder clearUserDevicePubk() {
userDevicePubk_ = getDefaultInstance().getUserDevicePubk();
onChanged();
return this;
}
/**
* <code>string user_device_pubk = 3;</code>
*/
public Builder setUserDevicePubkBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userDevicePubk_ = value;
onChanged();
return this;
}
private long lastLoginTime_ ;
/**
* <code>int64 last_login_time = 4;</code>
*/
public long getLastLoginTime() {
return lastLoginTime_;
}
/**
* <code>int64 last_login_time = 4;</code>
*/
public Builder setLastLoginTime(long value) {
lastLoginTime_ = value;
onChanged();
return this;
}
/**
* <code>int64 last_login_time = 4;</code>
*/
public Builder clearLastLoginTime() {
lastLoginTime_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:core.DeviceProfile)
}
// @@protoc_insertion_point(class_scope:core.DeviceProfile)
private static final com.akaxin.proto.core.DeviceProto.DeviceProfile DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.core.DeviceProto.DeviceProfile();
}
public static com.akaxin.proto.core.DeviceProto.DeviceProfile getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<DeviceProfile>
PARSER = new com.google.protobuf.AbstractParser<DeviceProfile>() {
public DeviceProfile parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeviceProfile(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<DeviceProfile> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<DeviceProfile> getParserForType() {
return PARSER;
}
public com.akaxin.proto.core.DeviceProto.DeviceProfile getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SimpleDeviceProfileOrBuilder extends
// @@protoc_insertion_point(interface_extends:core.SimpleDeviceProfile)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string device_id = 1;</code>
*/
java.lang.String getDeviceId();
/**
* <code>string device_id = 1;</code>
*/
com.google.protobuf.ByteString
getDeviceIdBytes();
/**
* <code>string device_name = 2;</code>
*/
java.lang.String getDeviceName();
/**
* <code>string device_name = 2;</code>
*/
com.google.protobuf.ByteString
getDeviceNameBytes();
/**
* <code>string user_device_pubk = 3;</code>
*/
java.lang.String getUserDevicePubk();
/**
* <code>string user_device_pubk = 3;</code>
*/
com.google.protobuf.ByteString
getUserDevicePubkBytes();
/**
* <code>int64 last_login_time = 4;</code>
*/
long getLastLoginTime();
}
/**
* <pre>
*设备简要信息
* </pre>
*
* Protobuf type {@code core.SimpleDeviceProfile}
*/
public static final class SimpleDeviceProfile extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:core.SimpleDeviceProfile)
SimpleDeviceProfileOrBuilder {
private static final long serialVersionUID = 0L;
// Use SimpleDeviceProfile.newBuilder() to construct.
private SimpleDeviceProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private SimpleDeviceProfile() {
deviceId_ = "";
deviceName_ = "";
userDevicePubk_ = "";
lastLoginTime_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SimpleDeviceProfile(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
deviceId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
deviceName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
userDevicePubk_ = s;
break;
}
case 32: {
lastLoginTime_ = input.readInt64();
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 com.akaxin.proto.core.DeviceProto.internal_static_core_SimpleDeviceProfile_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.core.DeviceProto.internal_static_core_SimpleDeviceProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.class, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder.class);
}
public static final int DEVICE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object deviceId_;
/**
* <code>string device_id = 1;</code>
*/
public java.lang.String getDeviceId() {
java.lang.Object ref = deviceId_;
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();
deviceId_ = s;
return s;
}
}
/**
* <code>string device_id = 1;</code>
*/
public com.google.protobuf.ByteString
getDeviceIdBytes() {
java.lang.Object ref = deviceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEVICE_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object deviceName_;
/**
* <code>string device_name = 2;</code>
*/
public java.lang.String getDeviceName() {
java.lang.Object ref = deviceName_;
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();
deviceName_ = s;
return s;
}
}
/**
* <code>string device_name = 2;</code>
*/
public com.google.protobuf.ByteString
getDeviceNameBytes() {
java.lang.Object ref = deviceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_DEVICE_PUBK_FIELD_NUMBER = 3;
private volatile java.lang.Object userDevicePubk_;
/**
* <code>string user_device_pubk = 3;</code>
*/
public java.lang.String getUserDevicePubk() {
java.lang.Object ref = userDevicePubk_;
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();
userDevicePubk_ = s;
return s;
}
}
/**
* <code>string user_device_pubk = 3;</code>
*/
public com.google.protobuf.ByteString
getUserDevicePubkBytes() {
java.lang.Object ref = userDevicePubk_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userDevicePubk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAST_LOGIN_TIME_FIELD_NUMBER = 4;
private long lastLoginTime_;
/**
* <code>int64 last_login_time = 4;</code>
*/
public long getLastLoginTime() {
return lastLoginTime_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getDeviceIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_);
}
if (!getDeviceNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceName_);
}
if (!getUserDevicePubkBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userDevicePubk_);
}
if (lastLoginTime_ != 0L) {
output.writeInt64(4, lastLoginTime_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getDeviceIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_);
}
if (!getDeviceNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceName_);
}
if (!getUserDevicePubkBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userDevicePubk_);
}
if (lastLoginTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, lastLoginTime_);
}
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 com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile)) {
return super.equals(obj);
}
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile other = (com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile) obj;
boolean result = true;
result = result && getDeviceId()
.equals(other.getDeviceId());
result = result && getDeviceName()
.equals(other.getDeviceName());
result = result && getUserDevicePubk()
.equals(other.getUserDevicePubk());
result = result && (getLastLoginTime()
== other.getLastLoginTime());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DEVICE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDeviceId().hashCode();
hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDeviceName().hashCode();
hash = (37 * hash) + USER_DEVICE_PUBK_FIELD_NUMBER;
hash = (53 * hash) + getUserDevicePubk().hashCode();
hash = (37 * hash) + LAST_LOGIN_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastLoginTime());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile 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 com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile 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 com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
* <pre>
*设备简要信息
* </pre>
*
* Protobuf type {@code core.SimpleDeviceProfile}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:core.SimpleDeviceProfile)
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.akaxin.proto.core.DeviceProto.internal_static_core_SimpleDeviceProfile_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.core.DeviceProto.internal_static_core_SimpleDeviceProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.class, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder.class);
}
// Construct using com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
deviceId_ = "";
deviceName_ = "";
userDevicePubk_ = "";
lastLoginTime_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.akaxin.proto.core.DeviceProto.internal_static_core_SimpleDeviceProfile_descriptor;
}
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile getDefaultInstanceForType() {
return com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.getDefaultInstance();
}
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile build() {
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile buildPartial() {
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile result = new com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile(this);
result.deviceId_ = deviceId_;
result.deviceName_ = deviceName_;
result.userDevicePubk_ = userDevicePubk_;
result.lastLoginTime_ = lastLoginTime_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile) {
return mergeFrom((com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile other) {
if (other == com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.getDefaultInstance()) return this;
if (!other.getDeviceId().isEmpty()) {
deviceId_ = other.deviceId_;
onChanged();
}
if (!other.getDeviceName().isEmpty()) {
deviceName_ = other.deviceName_;
onChanged();
}
if (!other.getUserDevicePubk().isEmpty()) {
userDevicePubk_ = other.userDevicePubk_;
onChanged();
}
if (other.getLastLoginTime() != 0L) {
setLastLoginTime(other.getLastLoginTime());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object deviceId_ = "";
/**
* <code>string device_id = 1;</code>
*/
public java.lang.String getDeviceId() {
java.lang.Object ref = deviceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string device_id = 1;</code>
*/
public com.google.protobuf.ByteString
getDeviceIdBytes() {
java.lang.Object ref = deviceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string device_id = 1;</code>
*/
public Builder setDeviceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
deviceId_ = value;
onChanged();
return this;
}
/**
* <code>string device_id = 1;</code>
*/
public Builder clearDeviceId() {
deviceId_ = getDefaultInstance().getDeviceId();
onChanged();
return this;
}
/**
* <code>string device_id = 1;</code>
*/
public Builder setDeviceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deviceId_ = value;
onChanged();
return this;
}
private java.lang.Object deviceName_ = "";
/**
* <code>string device_name = 2;</code>
*/
public java.lang.String getDeviceName() {
java.lang.Object ref = deviceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string device_name = 2;</code>
*/
public com.google.protobuf.ByteString
getDeviceNameBytes() {
java.lang.Object ref = deviceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string device_name = 2;</code>
*/
public Builder setDeviceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
deviceName_ = value;
onChanged();
return this;
}
/**
* <code>string device_name = 2;</code>
*/
public Builder clearDeviceName() {
deviceName_ = getDefaultInstance().getDeviceName();
onChanged();
return this;
}
/**
* <code>string device_name = 2;</code>
*/
public Builder setDeviceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deviceName_ = value;
onChanged();
return this;
}
private java.lang.Object userDevicePubk_ = "";
/**
* <code>string user_device_pubk = 3;</code>
*/
public java.lang.String getUserDevicePubk() {
java.lang.Object ref = userDevicePubk_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userDevicePubk_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string user_device_pubk = 3;</code>
*/
public com.google.protobuf.ByteString
getUserDevicePubkBytes() {
java.lang.Object ref = userDevicePubk_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userDevicePubk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string user_device_pubk = 3;</code>
*/
public Builder setUserDevicePubk(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userDevicePubk_ = value;
onChanged();
return this;
}
/**
* <code>string user_device_pubk = 3;</code>
*/
public Builder clearUserDevicePubk() {
userDevicePubk_ = getDefaultInstance().getUserDevicePubk();
onChanged();
return this;
}
/**
* <code>string user_device_pubk = 3;</code>
*/
public Builder setUserDevicePubkBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userDevicePubk_ = value;
onChanged();
return this;
}
private long lastLoginTime_ ;
/**
* <code>int64 last_login_time = 4;</code>
*/
public long getLastLoginTime() {
return lastLoginTime_;
}
/**
* <code>int64 last_login_time = 4;</code>
*/
public Builder setLastLoginTime(long value) {
lastLoginTime_ = value;
onChanged();
return this;
}
/**
* <code>int64 last_login_time = 4;</code>
*/
public Builder clearLastLoginTime() {
lastLoginTime_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:core.SimpleDeviceProfile)
}
// @@protoc_insertion_point(class_scope:core.SimpleDeviceProfile)
private static final com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile();
}
public static com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<SimpleDeviceProfile>
PARSER = new com.google.protobuf.AbstractParser<SimpleDeviceProfile>() {
public SimpleDeviceProfile parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SimpleDeviceProfile(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<SimpleDeviceProfile> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<SimpleDeviceProfile> getParserForType() {
return PARSER;
}
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_core_DeviceProfile_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_core_DeviceProfile_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_core_SimpleDeviceProfile_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_core_SimpleDeviceProfile_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\021core/device.proto\022\004core\"j\n\rDeviceProfi" +
"le\022\021\n\tdevice_id\030\001 \001(\t\022\023\n\013device_name\030\002 \001" +
"(\t\022\030\n\020user_device_pubk\030\003 \001(\t\022\027\n\017last_log" +
"in_time\030\004 \001(\003\"p\n\023SimpleDeviceProfile\022\021\n\t" +
"device_id\030\001 \001(\t\022\023\n\013device_name\030\002 \001(\t\022\030\n\020" +
"user_device_pubk\030\003 \001(\t\022\027\n\017last_login_tim" +
"e\030\004 \001(\003B$\n\025com.akaxin.proto.coreB\013Device" +
"Protob\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_core_DeviceProfile_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_core_DeviceProfile_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_core_DeviceProfile_descriptor,
new java.lang.String[] { "DeviceId", "DeviceName", "UserDevicePubk", "LastLoginTime", });
internal_static_core_SimpleDeviceProfile_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_core_SimpleDeviceProfile_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_core_SimpleDeviceProfile_descriptor,
new java.lang.String[] { "DeviceId", "DeviceName", "UserDevicePubk", "LastLoginTime", });
}
// @@protoc_insertion_point(outer_class_scope)
}