1537 lines
54 KiB
Java
Executable File
1537 lines
54 KiB
Java
Executable File
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: site/api_device_profile.proto
|
|
|
|
package com.akaxin.proto.site;
|
|
|
|
public final class ApiDeviceProfileProto {
|
|
private ApiDeviceProfileProto() {}
|
|
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 ApiDeviceProfileRequestOrBuilder extends
|
|
// @@protoc_insertion_point(interface_extends:site.ApiDeviceProfileRequest)
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
/**
|
|
* <pre>
|
|
*设备ID
|
|
* </pre>
|
|
*
|
|
* <code>string device_id = 1;</code>
|
|
*/
|
|
java.lang.String getDeviceId();
|
|
/**
|
|
* <pre>
|
|
*设备ID
|
|
* </pre>
|
|
*
|
|
* <code>string device_id = 1;</code>
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getDeviceIdBytes();
|
|
}
|
|
/**
|
|
* Protobuf type {@code site.ApiDeviceProfileRequest}
|
|
*/
|
|
public static final class ApiDeviceProfileRequest extends
|
|
com.google.protobuf.GeneratedMessageV3 implements
|
|
// @@protoc_insertion_point(message_implements:site.ApiDeviceProfileRequest)
|
|
ApiDeviceProfileRequestOrBuilder {
|
|
private static final long serialVersionUID = 0L;
|
|
// Use ApiDeviceProfileRequest.newBuilder() to construct.
|
|
private ApiDeviceProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
super(builder);
|
|
}
|
|
private ApiDeviceProfileRequest() {
|
|
deviceId_ = "";
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private ApiDeviceProfileRequest(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
this();
|
|
if (extensionRegistry == null) {
|
|
throw new java.lang.NullPointerException();
|
|
}
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
} 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.site.ApiDeviceProfileProto.internal_static_site_ApiDeviceProfileRequest_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.site.ApiDeviceProfileProto.internal_static_site_ApiDeviceProfileRequest_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest.class, com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest.Builder.class);
|
|
}
|
|
|
|
public static final int DEVICE_ID_FIELD_NUMBER = 1;
|
|
private volatile java.lang.Object deviceId_;
|
|
/**
|
|
* <pre>
|
|
*设备ID
|
|
* </pre>
|
|
*
|
|
* <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;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备ID
|
|
* </pre>
|
|
*
|
|
* <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;
|
|
}
|
|
}
|
|
|
|
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_);
|
|
}
|
|
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_);
|
|
}
|
|
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.site.ApiDeviceProfileProto.ApiDeviceProfileRequest)) {
|
|
return super.equals(obj);
|
|
}
|
|
com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest other = (com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest) obj;
|
|
|
|
boolean result = true;
|
|
result = result && getDeviceId()
|
|
.equals(other.getDeviceId());
|
|
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 = (29 * hash) + unknownFields.hashCode();
|
|
memoizedHashCode = hash;
|
|
return hash;
|
|
}
|
|
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest parseFrom(
|
|
java.nio.ByteBuffer data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest 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.site.ApiDeviceProfileProto.ApiDeviceProfileRequest parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest 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.site.ApiDeviceProfileProto.ApiDeviceProfileRequest parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest 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.site.ApiDeviceProfileProto.ApiDeviceProfileRequest parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest 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.site.ApiDeviceProfileProto.ApiDeviceProfileRequest parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest 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.site.ApiDeviceProfileProto.ApiDeviceProfileRequest 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;
|
|
}
|
|
/**
|
|
* Protobuf type {@code site.ApiDeviceProfileRequest}
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
// @@protoc_insertion_point(builder_implements:site.ApiDeviceProfileRequest)
|
|
com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequestOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.site.ApiDeviceProfileProto.internal_static_site_ApiDeviceProfileRequest_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.site.ApiDeviceProfileProto.internal_static_site_ApiDeviceProfileRequest_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest.class, com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest.Builder.class);
|
|
}
|
|
|
|
// Construct using com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest.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_ = "";
|
|
|
|
return this;
|
|
}
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return com.akaxin.proto.site.ApiDeviceProfileProto.internal_static_site_ApiDeviceProfileRequest_descriptor;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest getDefaultInstanceForType() {
|
|
return com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest.getDefaultInstance();
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest build() {
|
|
com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest buildPartial() {
|
|
com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest result = new com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest(this);
|
|
result.deviceId_ = deviceId_;
|
|
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.site.ApiDeviceProfileProto.ApiDeviceProfileRequest) {
|
|
return mergeFrom((com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest other) {
|
|
if (other == com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest.getDefaultInstance()) return this;
|
|
if (!other.getDeviceId().isEmpty()) {
|
|
deviceId_ = other.deviceId_;
|
|
onChanged();
|
|
}
|
|
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.site.ApiDeviceProfileProto.ApiDeviceProfileRequest parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest) e.getUnfinishedMessage();
|
|
throw e.unwrapIOException();
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
private java.lang.Object deviceId_ = "";
|
|
/**
|
|
* <pre>
|
|
*设备ID
|
|
* </pre>
|
|
*
|
|
* <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;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备ID
|
|
* </pre>
|
|
*
|
|
* <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;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备ID
|
|
* </pre>
|
|
*
|
|
* <code>string device_id = 1;</code>
|
|
*/
|
|
public Builder setDeviceId(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
deviceId_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备ID
|
|
* </pre>
|
|
*
|
|
* <code>string device_id = 1;</code>
|
|
*/
|
|
public Builder clearDeviceId() {
|
|
|
|
deviceId_ = getDefaultInstance().getDeviceId();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备ID
|
|
* </pre>
|
|
*
|
|
* <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;
|
|
}
|
|
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:site.ApiDeviceProfileRequest)
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:site.ApiDeviceProfileRequest)
|
|
private static final com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest DEFAULT_INSTANCE;
|
|
static {
|
|
DEFAULT_INSTANCE = new com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest();
|
|
}
|
|
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest getDefaultInstance() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
private static final com.google.protobuf.Parser<ApiDeviceProfileRequest>
|
|
PARSER = new com.google.protobuf.AbstractParser<ApiDeviceProfileRequest>() {
|
|
public ApiDeviceProfileRequest parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new ApiDeviceProfileRequest(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
public static com.google.protobuf.Parser<ApiDeviceProfileRequest> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<ApiDeviceProfileRequest> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileRequest getDefaultInstanceForType() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
}
|
|
|
|
public interface ApiDeviceProfileResponseOrBuilder extends
|
|
// @@protoc_insertion_point(interface_extends:site.ApiDeviceProfileResponse)
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
boolean hasDeviceProfile();
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile getDeviceProfile();
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder getDeviceProfileOrBuilder();
|
|
|
|
/**
|
|
* <pre>
|
|
*客户端登陆的IP
|
|
* </pre>
|
|
*
|
|
* <code>string login_ip = 2;</code>
|
|
*/
|
|
java.lang.String getLoginIp();
|
|
/**
|
|
* <pre>
|
|
*客户端登陆的IP
|
|
* </pre>
|
|
*
|
|
* <code>string login_ip = 2;</code>
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getLoginIpBytes();
|
|
|
|
/**
|
|
* <pre>
|
|
*客户端上次登陆时间
|
|
* </pre>
|
|
*
|
|
* <code>int64 last_active_time = 3;</code>
|
|
*/
|
|
long getLastActiveTime();
|
|
}
|
|
/**
|
|
* Protobuf type {@code site.ApiDeviceProfileResponse}
|
|
*/
|
|
public static final class ApiDeviceProfileResponse extends
|
|
com.google.protobuf.GeneratedMessageV3 implements
|
|
// @@protoc_insertion_point(message_implements:site.ApiDeviceProfileResponse)
|
|
ApiDeviceProfileResponseOrBuilder {
|
|
private static final long serialVersionUID = 0L;
|
|
// Use ApiDeviceProfileResponse.newBuilder() to construct.
|
|
private ApiDeviceProfileResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
super(builder);
|
|
}
|
|
private ApiDeviceProfileResponse() {
|
|
loginIp_ = "";
|
|
lastActiveTime_ = 0L;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private ApiDeviceProfileResponse(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
this();
|
|
if (extensionRegistry == null) {
|
|
throw new java.lang.NullPointerException();
|
|
}
|
|
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: {
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder subBuilder = null;
|
|
if (deviceProfile_ != null) {
|
|
subBuilder = deviceProfile_.toBuilder();
|
|
}
|
|
deviceProfile_ = input.readMessage(com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.parser(), extensionRegistry);
|
|
if (subBuilder != null) {
|
|
subBuilder.mergeFrom(deviceProfile_);
|
|
deviceProfile_ = subBuilder.buildPartial();
|
|
}
|
|
|
|
break;
|
|
}
|
|
case 18: {
|
|
java.lang.String s = input.readStringRequireUtf8();
|
|
|
|
loginIp_ = s;
|
|
break;
|
|
}
|
|
case 24: {
|
|
|
|
lastActiveTime_ = 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.site.ApiDeviceProfileProto.internal_static_site_ApiDeviceProfileResponse_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.site.ApiDeviceProfileProto.internal_static_site_ApiDeviceProfileResponse_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse.class, com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse.Builder.class);
|
|
}
|
|
|
|
public static final int DEVICEPROFILE_FIELD_NUMBER = 1;
|
|
private com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile deviceProfile_;
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
public boolean hasDeviceProfile() {
|
|
return deviceProfile_ != null;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile getDeviceProfile() {
|
|
return deviceProfile_ == null ? com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.getDefaultInstance() : deviceProfile_;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder getDeviceProfileOrBuilder() {
|
|
return getDeviceProfile();
|
|
}
|
|
|
|
public static final int LOGIN_IP_FIELD_NUMBER = 2;
|
|
private volatile java.lang.Object loginIp_;
|
|
/**
|
|
* <pre>
|
|
*客户端登陆的IP
|
|
* </pre>
|
|
*
|
|
* <code>string login_ip = 2;</code>
|
|
*/
|
|
public java.lang.String getLoginIp() {
|
|
java.lang.Object ref = loginIp_;
|
|
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();
|
|
loginIp_ = s;
|
|
return s;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*客户端登陆的IP
|
|
* </pre>
|
|
*
|
|
* <code>string login_ip = 2;</code>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getLoginIpBytes() {
|
|
java.lang.Object ref = loginIp_;
|
|
if (ref instanceof java.lang.String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
loginIp_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
|
|
public static final int LAST_ACTIVE_TIME_FIELD_NUMBER = 3;
|
|
private long lastActiveTime_;
|
|
/**
|
|
* <pre>
|
|
*客户端上次登陆时间
|
|
* </pre>
|
|
*
|
|
* <code>int64 last_active_time = 3;</code>
|
|
*/
|
|
public long getLastActiveTime() {
|
|
return lastActiveTime_;
|
|
}
|
|
|
|
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 (deviceProfile_ != null) {
|
|
output.writeMessage(1, getDeviceProfile());
|
|
}
|
|
if (!getLoginIpBytes().isEmpty()) {
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, loginIp_);
|
|
}
|
|
if (lastActiveTime_ != 0L) {
|
|
output.writeInt64(3, lastActiveTime_);
|
|
}
|
|
unknownFields.writeTo(output);
|
|
}
|
|
|
|
public int getSerializedSize() {
|
|
int size = memoizedSize;
|
|
if (size != -1) return size;
|
|
|
|
size = 0;
|
|
if (deviceProfile_ != null) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeMessageSize(1, getDeviceProfile());
|
|
}
|
|
if (!getLoginIpBytes().isEmpty()) {
|
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, loginIp_);
|
|
}
|
|
if (lastActiveTime_ != 0L) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeInt64Size(3, lastActiveTime_);
|
|
}
|
|
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.site.ApiDeviceProfileProto.ApiDeviceProfileResponse)) {
|
|
return super.equals(obj);
|
|
}
|
|
com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse other = (com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse) obj;
|
|
|
|
boolean result = true;
|
|
result = result && (hasDeviceProfile() == other.hasDeviceProfile());
|
|
if (hasDeviceProfile()) {
|
|
result = result && getDeviceProfile()
|
|
.equals(other.getDeviceProfile());
|
|
}
|
|
result = result && getLoginIp()
|
|
.equals(other.getLoginIp());
|
|
result = result && (getLastActiveTime()
|
|
== other.getLastActiveTime());
|
|
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();
|
|
if (hasDeviceProfile()) {
|
|
hash = (37 * hash) + DEVICEPROFILE_FIELD_NUMBER;
|
|
hash = (53 * hash) + getDeviceProfile().hashCode();
|
|
}
|
|
hash = (37 * hash) + LOGIN_IP_FIELD_NUMBER;
|
|
hash = (53 * hash) + getLoginIp().hashCode();
|
|
hash = (37 * hash) + LAST_ACTIVE_TIME_FIELD_NUMBER;
|
|
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
|
getLastActiveTime());
|
|
hash = (29 * hash) + unknownFields.hashCode();
|
|
memoizedHashCode = hash;
|
|
return hash;
|
|
}
|
|
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse parseFrom(
|
|
java.nio.ByteBuffer data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse 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.site.ApiDeviceProfileProto.ApiDeviceProfileResponse parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse 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.site.ApiDeviceProfileProto.ApiDeviceProfileResponse parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse 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.site.ApiDeviceProfileProto.ApiDeviceProfileResponse parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse 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.site.ApiDeviceProfileProto.ApiDeviceProfileResponse parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse 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.site.ApiDeviceProfileProto.ApiDeviceProfileResponse 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;
|
|
}
|
|
/**
|
|
* Protobuf type {@code site.ApiDeviceProfileResponse}
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
// @@protoc_insertion_point(builder_implements:site.ApiDeviceProfileResponse)
|
|
com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponseOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.site.ApiDeviceProfileProto.internal_static_site_ApiDeviceProfileResponse_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.site.ApiDeviceProfileProto.internal_static_site_ApiDeviceProfileResponse_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse.class, com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse.Builder.class);
|
|
}
|
|
|
|
// Construct using com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse.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();
|
|
if (deviceProfileBuilder_ == null) {
|
|
deviceProfile_ = null;
|
|
} else {
|
|
deviceProfile_ = null;
|
|
deviceProfileBuilder_ = null;
|
|
}
|
|
loginIp_ = "";
|
|
|
|
lastActiveTime_ = 0L;
|
|
|
|
return this;
|
|
}
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return com.akaxin.proto.site.ApiDeviceProfileProto.internal_static_site_ApiDeviceProfileResponse_descriptor;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse getDefaultInstanceForType() {
|
|
return com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse.getDefaultInstance();
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse build() {
|
|
com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse buildPartial() {
|
|
com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse result = new com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse(this);
|
|
if (deviceProfileBuilder_ == null) {
|
|
result.deviceProfile_ = deviceProfile_;
|
|
} else {
|
|
result.deviceProfile_ = deviceProfileBuilder_.build();
|
|
}
|
|
result.loginIp_ = loginIp_;
|
|
result.lastActiveTime_ = lastActiveTime_;
|
|
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.site.ApiDeviceProfileProto.ApiDeviceProfileResponse) {
|
|
return mergeFrom((com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse other) {
|
|
if (other == com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse.getDefaultInstance()) return this;
|
|
if (other.hasDeviceProfile()) {
|
|
mergeDeviceProfile(other.getDeviceProfile());
|
|
}
|
|
if (!other.getLoginIp().isEmpty()) {
|
|
loginIp_ = other.loginIp_;
|
|
onChanged();
|
|
}
|
|
if (other.getLastActiveTime() != 0L) {
|
|
setLastActiveTime(other.getLastActiveTime());
|
|
}
|
|
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.site.ApiDeviceProfileProto.ApiDeviceProfileResponse parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse) e.getUnfinishedMessage();
|
|
throw e.unwrapIOException();
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
private com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile deviceProfile_ = null;
|
|
private com.google.protobuf.SingleFieldBuilderV3<
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder> deviceProfileBuilder_;
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
public boolean hasDeviceProfile() {
|
|
return deviceProfileBuilder_ != null || deviceProfile_ != null;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile getDeviceProfile() {
|
|
if (deviceProfileBuilder_ == null) {
|
|
return deviceProfile_ == null ? com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.getDefaultInstance() : deviceProfile_;
|
|
} else {
|
|
return deviceProfileBuilder_.getMessage();
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
public Builder setDeviceProfile(com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile value) {
|
|
if (deviceProfileBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
deviceProfile_ = value;
|
|
onChanged();
|
|
} else {
|
|
deviceProfileBuilder_.setMessage(value);
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
public Builder setDeviceProfile(
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder builderForValue) {
|
|
if (deviceProfileBuilder_ == null) {
|
|
deviceProfile_ = builderForValue.build();
|
|
onChanged();
|
|
} else {
|
|
deviceProfileBuilder_.setMessage(builderForValue.build());
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
public Builder mergeDeviceProfile(com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile value) {
|
|
if (deviceProfileBuilder_ == null) {
|
|
if (deviceProfile_ != null) {
|
|
deviceProfile_ =
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.newBuilder(deviceProfile_).mergeFrom(value).buildPartial();
|
|
} else {
|
|
deviceProfile_ = value;
|
|
}
|
|
onChanged();
|
|
} else {
|
|
deviceProfileBuilder_.mergeFrom(value);
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
public Builder clearDeviceProfile() {
|
|
if (deviceProfileBuilder_ == null) {
|
|
deviceProfile_ = null;
|
|
onChanged();
|
|
} else {
|
|
deviceProfile_ = null;
|
|
deviceProfileBuilder_ = null;
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder getDeviceProfileBuilder() {
|
|
|
|
onChanged();
|
|
return getDeviceProfileFieldBuilder().getBuilder();
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder getDeviceProfileOrBuilder() {
|
|
if (deviceProfileBuilder_ != null) {
|
|
return deviceProfileBuilder_.getMessageOrBuilder();
|
|
} else {
|
|
return deviceProfile_ == null ?
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.getDefaultInstance() : deviceProfile_;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备资料
|
|
* </pre>
|
|
*
|
|
* <code>.core.SimpleDeviceProfile deviceProfile = 1;</code>
|
|
*/
|
|
private com.google.protobuf.SingleFieldBuilderV3<
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder>
|
|
getDeviceProfileFieldBuilder() {
|
|
if (deviceProfileBuilder_ == null) {
|
|
deviceProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder>(
|
|
getDeviceProfile(),
|
|
getParentForChildren(),
|
|
isClean());
|
|
deviceProfile_ = null;
|
|
}
|
|
return deviceProfileBuilder_;
|
|
}
|
|
|
|
private java.lang.Object loginIp_ = "";
|
|
/**
|
|
* <pre>
|
|
*客户端登陆的IP
|
|
* </pre>
|
|
*
|
|
* <code>string login_ip = 2;</code>
|
|
*/
|
|
public java.lang.String getLoginIp() {
|
|
java.lang.Object ref = loginIp_;
|
|
if (!(ref instanceof java.lang.String)) {
|
|
com.google.protobuf.ByteString bs =
|
|
(com.google.protobuf.ByteString) ref;
|
|
java.lang.String s = bs.toStringUtf8();
|
|
loginIp_ = s;
|
|
return s;
|
|
} else {
|
|
return (java.lang.String) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*客户端登陆的IP
|
|
* </pre>
|
|
*
|
|
* <code>string login_ip = 2;</code>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getLoginIpBytes() {
|
|
java.lang.Object ref = loginIp_;
|
|
if (ref instanceof String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
loginIp_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*客户端登陆的IP
|
|
* </pre>
|
|
*
|
|
* <code>string login_ip = 2;</code>
|
|
*/
|
|
public Builder setLoginIp(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
loginIp_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*客户端登陆的IP
|
|
* </pre>
|
|
*
|
|
* <code>string login_ip = 2;</code>
|
|
*/
|
|
public Builder clearLoginIp() {
|
|
|
|
loginIp_ = getDefaultInstance().getLoginIp();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*客户端登陆的IP
|
|
* </pre>
|
|
*
|
|
* <code>string login_ip = 2;</code>
|
|
*/
|
|
public Builder setLoginIpBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
checkByteStringIsUtf8(value);
|
|
|
|
loginIp_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private long lastActiveTime_ ;
|
|
/**
|
|
* <pre>
|
|
*客户端上次登陆时间
|
|
* </pre>
|
|
*
|
|
* <code>int64 last_active_time = 3;</code>
|
|
*/
|
|
public long getLastActiveTime() {
|
|
return lastActiveTime_;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*客户端上次登陆时间
|
|
* </pre>
|
|
*
|
|
* <code>int64 last_active_time = 3;</code>
|
|
*/
|
|
public Builder setLastActiveTime(long value) {
|
|
|
|
lastActiveTime_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*客户端上次登陆时间
|
|
* </pre>
|
|
*
|
|
* <code>int64 last_active_time = 3;</code>
|
|
*/
|
|
public Builder clearLastActiveTime() {
|
|
|
|
lastActiveTime_ = 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:site.ApiDeviceProfileResponse)
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:site.ApiDeviceProfileResponse)
|
|
private static final com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse DEFAULT_INSTANCE;
|
|
static {
|
|
DEFAULT_INSTANCE = new com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse();
|
|
}
|
|
|
|
public static com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse getDefaultInstance() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
private static final com.google.protobuf.Parser<ApiDeviceProfileResponse>
|
|
PARSER = new com.google.protobuf.AbstractParser<ApiDeviceProfileResponse>() {
|
|
public ApiDeviceProfileResponse parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new ApiDeviceProfileResponse(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
public static com.google.protobuf.Parser<ApiDeviceProfileResponse> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<ApiDeviceProfileResponse> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceProfileProto.ApiDeviceProfileResponse getDefaultInstanceForType() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
}
|
|
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_site_ApiDeviceProfileRequest_descriptor;
|
|
private static final
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internal_static_site_ApiDeviceProfileRequest_fieldAccessorTable;
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_site_ApiDeviceProfileResponse_descriptor;
|
|
private static final
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internal_static_site_ApiDeviceProfileResponse_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\035site/api_device_profile.proto\022\004site\032\021c" +
|
|
"ore/device.proto\",\n\027ApiDeviceProfileRequ" +
|
|
"est\022\021\n\tdevice_id\030\001 \001(\t\"x\n\030ApiDeviceProfi" +
|
|
"leResponse\0220\n\rdeviceProfile\030\001 \001(\0132\031.core" +
|
|
".SimpleDeviceProfile\022\020\n\010login_ip\030\002 \001(\t\022\030" +
|
|
"\n\020last_active_time\030\003 \001(\0032c\n\027ApiDevicePro" +
|
|
"fileService\022H\n\007profile\022\035.site.ApiDeviceP" +
|
|
"rofileRequest\032\036.site.ApiDeviceProfileRes" +
|
|
"ponseB.\n\025com.akaxin.proto.siteB\025ApiDevic" +
|
|
"eProfileProtob\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[] {
|
|
com.akaxin.proto.core.DeviceProto.getDescriptor(),
|
|
}, assigner);
|
|
internal_static_site_ApiDeviceProfileRequest_descriptor =
|
|
getDescriptor().getMessageTypes().get(0);
|
|
internal_static_site_ApiDeviceProfileRequest_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
internal_static_site_ApiDeviceProfileRequest_descriptor,
|
|
new java.lang.String[] { "DeviceId", });
|
|
internal_static_site_ApiDeviceProfileResponse_descriptor =
|
|
getDescriptor().getMessageTypes().get(1);
|
|
internal_static_site_ApiDeviceProfileResponse_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
internal_static_site_ApiDeviceProfileResponse_descriptor,
|
|
new java.lang.String[] { "DeviceProfile", "LoginIp", "LastActiveTime", });
|
|
com.akaxin.proto.core.DeviceProto.getDescriptor();
|
|
}
|
|
|
|
// @@protoc_insertion_point(outer_class_scope)
|
|
}
|