1672 lines
57 KiB
Java
Executable File
1672 lines
57 KiB
Java
Executable File
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: site/api_device_list.proto
|
|
|
|
package com.akaxin.proto.site;
|
|
|
|
public final class ApiDeviceListProto {
|
|
private ApiDeviceListProto() {}
|
|
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 DeviceListInfoRequestOrBuilder extends
|
|
// @@protoc_insertion_point(interface_extends:site.DeviceListInfoRequest)
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
/**
|
|
* <pre>
|
|
*获取列表的用户ID
|
|
* </pre>
|
|
*
|
|
* <code>string site_user_id = 1;</code>
|
|
*/
|
|
java.lang.String getSiteUserId();
|
|
/**
|
|
* <pre>
|
|
*获取列表的用户ID
|
|
* </pre>
|
|
*
|
|
* <code>string site_user_id = 1;</code>
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getSiteUserIdBytes();
|
|
|
|
/**
|
|
* <pre>
|
|
*第几页
|
|
* </pre>
|
|
*
|
|
* <code>int32 page_number = 2;</code>
|
|
*/
|
|
int getPageNumber();
|
|
|
|
/**
|
|
* <pre>
|
|
*每页第几条
|
|
* </pre>
|
|
*
|
|
* <code>int32 page_size = 3;</code>
|
|
*/
|
|
int getPageSize();
|
|
}
|
|
/**
|
|
* Protobuf type {@code site.DeviceListInfoRequest}
|
|
*/
|
|
public static final class DeviceListInfoRequest extends
|
|
com.google.protobuf.GeneratedMessageV3 implements
|
|
// @@protoc_insertion_point(message_implements:site.DeviceListInfoRequest)
|
|
DeviceListInfoRequestOrBuilder {
|
|
private static final long serialVersionUID = 0L;
|
|
// Use DeviceListInfoRequest.newBuilder() to construct.
|
|
private DeviceListInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
super(builder);
|
|
}
|
|
private DeviceListInfoRequest() {
|
|
siteUserId_ = "";
|
|
pageNumber_ = 0;
|
|
pageSize_ = 0;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private DeviceListInfoRequest(
|
|
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();
|
|
|
|
siteUserId_ = s;
|
|
break;
|
|
}
|
|
case 16: {
|
|
|
|
pageNumber_ = input.readInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
|
|
pageSize_ = input.readInt32();
|
|
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.ApiDeviceListProto.internal_static_site_DeviceListInfoRequest_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.site.ApiDeviceListProto.internal_static_site_DeviceListInfoRequest_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest.class, com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest.Builder.class);
|
|
}
|
|
|
|
public static final int SITE_USER_ID_FIELD_NUMBER = 1;
|
|
private volatile java.lang.Object siteUserId_;
|
|
/**
|
|
* <pre>
|
|
*获取列表的用户ID
|
|
* </pre>
|
|
*
|
|
* <code>string site_user_id = 1;</code>
|
|
*/
|
|
public java.lang.String getSiteUserId() {
|
|
java.lang.Object ref = siteUserId_;
|
|
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();
|
|
siteUserId_ = s;
|
|
return s;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*获取列表的用户ID
|
|
* </pre>
|
|
*
|
|
* <code>string site_user_id = 1;</code>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getSiteUserIdBytes() {
|
|
java.lang.Object ref = siteUserId_;
|
|
if (ref instanceof java.lang.String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
siteUserId_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
|
|
public static final int PAGE_NUMBER_FIELD_NUMBER = 2;
|
|
private int pageNumber_;
|
|
/**
|
|
* <pre>
|
|
*第几页
|
|
* </pre>
|
|
*
|
|
* <code>int32 page_number = 2;</code>
|
|
*/
|
|
public int getPageNumber() {
|
|
return pageNumber_;
|
|
}
|
|
|
|
public static final int PAGE_SIZE_FIELD_NUMBER = 3;
|
|
private int pageSize_;
|
|
/**
|
|
* <pre>
|
|
*每页第几条
|
|
* </pre>
|
|
*
|
|
* <code>int32 page_size = 3;</code>
|
|
*/
|
|
public int getPageSize() {
|
|
return pageSize_;
|
|
}
|
|
|
|
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 (!getSiteUserIdBytes().isEmpty()) {
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, siteUserId_);
|
|
}
|
|
if (pageNumber_ != 0) {
|
|
output.writeInt32(2, pageNumber_);
|
|
}
|
|
if (pageSize_ != 0) {
|
|
output.writeInt32(3, pageSize_);
|
|
}
|
|
unknownFields.writeTo(output);
|
|
}
|
|
|
|
public int getSerializedSize() {
|
|
int size = memoizedSize;
|
|
if (size != -1) return size;
|
|
|
|
size = 0;
|
|
if (!getSiteUserIdBytes().isEmpty()) {
|
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, siteUserId_);
|
|
}
|
|
if (pageNumber_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeInt32Size(2, pageNumber_);
|
|
}
|
|
if (pageSize_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeInt32Size(3, pageSize_);
|
|
}
|
|
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.ApiDeviceListProto.DeviceListInfoRequest)) {
|
|
return super.equals(obj);
|
|
}
|
|
com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest other = (com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest) obj;
|
|
|
|
boolean result = true;
|
|
result = result && getSiteUserId()
|
|
.equals(other.getSiteUserId());
|
|
result = result && (getPageNumber()
|
|
== other.getPageNumber());
|
|
result = result && (getPageSize()
|
|
== other.getPageSize());
|
|
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) + SITE_USER_ID_FIELD_NUMBER;
|
|
hash = (53 * hash) + getSiteUserId().hashCode();
|
|
hash = (37 * hash) + PAGE_NUMBER_FIELD_NUMBER;
|
|
hash = (53 * hash) + getPageNumber();
|
|
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
|
|
hash = (53 * hash) + getPageSize();
|
|
hash = (29 * hash) + unknownFields.hashCode();
|
|
memoizedHashCode = hash;
|
|
return hash;
|
|
}
|
|
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest parseFrom(
|
|
java.nio.ByteBuffer data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest 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.ApiDeviceListProto.DeviceListInfoRequest parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest 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.ApiDeviceListProto.DeviceListInfoRequest parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest 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.ApiDeviceListProto.DeviceListInfoRequest parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest 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.ApiDeviceListProto.DeviceListInfoRequest parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest 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.ApiDeviceListProto.DeviceListInfoRequest 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.DeviceListInfoRequest}
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
// @@protoc_insertion_point(builder_implements:site.DeviceListInfoRequest)
|
|
com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequestOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.site.ApiDeviceListProto.internal_static_site_DeviceListInfoRequest_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.site.ApiDeviceListProto.internal_static_site_DeviceListInfoRequest_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest.class, com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest.Builder.class);
|
|
}
|
|
|
|
// Construct using com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest.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();
|
|
siteUserId_ = "";
|
|
|
|
pageNumber_ = 0;
|
|
|
|
pageSize_ = 0;
|
|
|
|
return this;
|
|
}
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return com.akaxin.proto.site.ApiDeviceListProto.internal_static_site_DeviceListInfoRequest_descriptor;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest getDefaultInstanceForType() {
|
|
return com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest.getDefaultInstance();
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest build() {
|
|
com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest buildPartial() {
|
|
com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest result = new com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest(this);
|
|
result.siteUserId_ = siteUserId_;
|
|
result.pageNumber_ = pageNumber_;
|
|
result.pageSize_ = pageSize_;
|
|
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.ApiDeviceListProto.DeviceListInfoRequest) {
|
|
return mergeFrom((com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest other) {
|
|
if (other == com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest.getDefaultInstance()) return this;
|
|
if (!other.getSiteUserId().isEmpty()) {
|
|
siteUserId_ = other.siteUserId_;
|
|
onChanged();
|
|
}
|
|
if (other.getPageNumber() != 0) {
|
|
setPageNumber(other.getPageNumber());
|
|
}
|
|
if (other.getPageSize() != 0) {
|
|
setPageSize(other.getPageSize());
|
|
}
|
|
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.ApiDeviceListProto.DeviceListInfoRequest parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest) e.getUnfinishedMessage();
|
|
throw e.unwrapIOException();
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
private java.lang.Object siteUserId_ = "";
|
|
/**
|
|
* <pre>
|
|
*获取列表的用户ID
|
|
* </pre>
|
|
*
|
|
* <code>string site_user_id = 1;</code>
|
|
*/
|
|
public java.lang.String getSiteUserId() {
|
|
java.lang.Object ref = siteUserId_;
|
|
if (!(ref instanceof java.lang.String)) {
|
|
com.google.protobuf.ByteString bs =
|
|
(com.google.protobuf.ByteString) ref;
|
|
java.lang.String s = bs.toStringUtf8();
|
|
siteUserId_ = s;
|
|
return s;
|
|
} else {
|
|
return (java.lang.String) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*获取列表的用户ID
|
|
* </pre>
|
|
*
|
|
* <code>string site_user_id = 1;</code>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getSiteUserIdBytes() {
|
|
java.lang.Object ref = siteUserId_;
|
|
if (ref instanceof String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
siteUserId_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*获取列表的用户ID
|
|
* </pre>
|
|
*
|
|
* <code>string site_user_id = 1;</code>
|
|
*/
|
|
public Builder setSiteUserId(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
siteUserId_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*获取列表的用户ID
|
|
* </pre>
|
|
*
|
|
* <code>string site_user_id = 1;</code>
|
|
*/
|
|
public Builder clearSiteUserId() {
|
|
|
|
siteUserId_ = getDefaultInstance().getSiteUserId();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*获取列表的用户ID
|
|
* </pre>
|
|
*
|
|
* <code>string site_user_id = 1;</code>
|
|
*/
|
|
public Builder setSiteUserIdBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
checkByteStringIsUtf8(value);
|
|
|
|
siteUserId_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private int pageNumber_ ;
|
|
/**
|
|
* <pre>
|
|
*第几页
|
|
* </pre>
|
|
*
|
|
* <code>int32 page_number = 2;</code>
|
|
*/
|
|
public int getPageNumber() {
|
|
return pageNumber_;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*第几页
|
|
* </pre>
|
|
*
|
|
* <code>int32 page_number = 2;</code>
|
|
*/
|
|
public Builder setPageNumber(int value) {
|
|
|
|
pageNumber_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*第几页
|
|
* </pre>
|
|
*
|
|
* <code>int32 page_number = 2;</code>
|
|
*/
|
|
public Builder clearPageNumber() {
|
|
|
|
pageNumber_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private int pageSize_ ;
|
|
/**
|
|
* <pre>
|
|
*每页第几条
|
|
* </pre>
|
|
*
|
|
* <code>int32 page_size = 3;</code>
|
|
*/
|
|
public int getPageSize() {
|
|
return pageSize_;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*每页第几条
|
|
* </pre>
|
|
*
|
|
* <code>int32 page_size = 3;</code>
|
|
*/
|
|
public Builder setPageSize(int value) {
|
|
|
|
pageSize_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*每页第几条
|
|
* </pre>
|
|
*
|
|
* <code>int32 page_size = 3;</code>
|
|
*/
|
|
public Builder clearPageSize() {
|
|
|
|
pageSize_ = 0;
|
|
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.DeviceListInfoRequest)
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:site.DeviceListInfoRequest)
|
|
private static final com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest DEFAULT_INSTANCE;
|
|
static {
|
|
DEFAULT_INSTANCE = new com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest();
|
|
}
|
|
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest getDefaultInstance() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
private static final com.google.protobuf.Parser<DeviceListInfoRequest>
|
|
PARSER = new com.google.protobuf.AbstractParser<DeviceListInfoRequest>() {
|
|
public DeviceListInfoRequest parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new DeviceListInfoRequest(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
public static com.google.protobuf.Parser<DeviceListInfoRequest> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<DeviceListInfoRequest> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoRequest getDefaultInstanceForType() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
}
|
|
|
|
public interface DeviceListInfoResponseOrBuilder extends
|
|
// @@protoc_insertion_point(interface_extends:site.DeviceListInfoResponse)
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
java.util.List<com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile>
|
|
getListList();
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile getList(int index);
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
int getListCount();
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
java.util.List<? extends com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder>
|
|
getListOrBuilderList();
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder getListOrBuilder(
|
|
int index);
|
|
}
|
|
/**
|
|
* Protobuf type {@code site.DeviceListInfoResponse}
|
|
*/
|
|
public static final class DeviceListInfoResponse extends
|
|
com.google.protobuf.GeneratedMessageV3 implements
|
|
// @@protoc_insertion_point(message_implements:site.DeviceListInfoResponse)
|
|
DeviceListInfoResponseOrBuilder {
|
|
private static final long serialVersionUID = 0L;
|
|
// Use DeviceListInfoResponse.newBuilder() to construct.
|
|
private DeviceListInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
super(builder);
|
|
}
|
|
private DeviceListInfoResponse() {
|
|
list_ = java.util.Collections.emptyList();
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private DeviceListInfoResponse(
|
|
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: {
|
|
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
|
|
list_ = new java.util.ArrayList<com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile>();
|
|
mutable_bitField0_ |= 0x00000001;
|
|
}
|
|
list_.add(
|
|
input.readMessage(com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.parser(), extensionRegistry));
|
|
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 {
|
|
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
|
|
list_ = java.util.Collections.unmodifiableList(list_);
|
|
}
|
|
this.unknownFields = unknownFields.build();
|
|
makeExtensionsImmutable();
|
|
}
|
|
}
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.site.ApiDeviceListProto.internal_static_site_DeviceListInfoResponse_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.site.ApiDeviceListProto.internal_static_site_DeviceListInfoResponse_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse.class, com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse.Builder.class);
|
|
}
|
|
|
|
public static final int LIST_FIELD_NUMBER = 1;
|
|
private java.util.List<com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile> list_;
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public java.util.List<com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile> getListList() {
|
|
return list_;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public java.util.List<? extends com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder>
|
|
getListOrBuilderList() {
|
|
return list_;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public int getListCount() {
|
|
return list_.size();
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile getList(int index) {
|
|
return list_.get(index);
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder getListOrBuilder(
|
|
int index) {
|
|
return list_.get(index);
|
|
}
|
|
|
|
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 {
|
|
for (int i = 0; i < list_.size(); i++) {
|
|
output.writeMessage(1, list_.get(i));
|
|
}
|
|
unknownFields.writeTo(output);
|
|
}
|
|
|
|
public int getSerializedSize() {
|
|
int size = memoizedSize;
|
|
if (size != -1) return size;
|
|
|
|
size = 0;
|
|
for (int i = 0; i < list_.size(); i++) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeMessageSize(1, list_.get(i));
|
|
}
|
|
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.ApiDeviceListProto.DeviceListInfoResponse)) {
|
|
return super.equals(obj);
|
|
}
|
|
com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse other = (com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse) obj;
|
|
|
|
boolean result = true;
|
|
result = result && getListList()
|
|
.equals(other.getListList());
|
|
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 (getListCount() > 0) {
|
|
hash = (37 * hash) + LIST_FIELD_NUMBER;
|
|
hash = (53 * hash) + getListList().hashCode();
|
|
}
|
|
hash = (29 * hash) + unknownFields.hashCode();
|
|
memoizedHashCode = hash;
|
|
return hash;
|
|
}
|
|
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse parseFrom(
|
|
java.nio.ByteBuffer data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse 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.ApiDeviceListProto.DeviceListInfoResponse parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse 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.ApiDeviceListProto.DeviceListInfoResponse parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse 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.ApiDeviceListProto.DeviceListInfoResponse parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse 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.ApiDeviceListProto.DeviceListInfoResponse parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse 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.ApiDeviceListProto.DeviceListInfoResponse 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.DeviceListInfoResponse}
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
// @@protoc_insertion_point(builder_implements:site.DeviceListInfoResponse)
|
|
com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponseOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.site.ApiDeviceListProto.internal_static_site_DeviceListInfoResponse_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.site.ApiDeviceListProto.internal_static_site_DeviceListInfoResponse_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse.class, com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse.Builder.class);
|
|
}
|
|
|
|
// Construct using com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse.newBuilder()
|
|
private Builder() {
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
|
|
private Builder(
|
|
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
super(parent);
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
private void maybeForceBuilderInitialization() {
|
|
if (com.google.protobuf.GeneratedMessageV3
|
|
.alwaysUseFieldBuilders) {
|
|
getListFieldBuilder();
|
|
}
|
|
}
|
|
public Builder clear() {
|
|
super.clear();
|
|
if (listBuilder_ == null) {
|
|
list_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
} else {
|
|
listBuilder_.clear();
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return com.akaxin.proto.site.ApiDeviceListProto.internal_static_site_DeviceListInfoResponse_descriptor;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse getDefaultInstanceForType() {
|
|
return com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse.getDefaultInstance();
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse build() {
|
|
com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse buildPartial() {
|
|
com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse result = new com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse(this);
|
|
int from_bitField0_ = bitField0_;
|
|
if (listBuilder_ == null) {
|
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
list_ = java.util.Collections.unmodifiableList(list_);
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
}
|
|
result.list_ = list_;
|
|
} else {
|
|
result.list_ = listBuilder_.build();
|
|
}
|
|
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.ApiDeviceListProto.DeviceListInfoResponse) {
|
|
return mergeFrom((com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse other) {
|
|
if (other == com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse.getDefaultInstance()) return this;
|
|
if (listBuilder_ == null) {
|
|
if (!other.list_.isEmpty()) {
|
|
if (list_.isEmpty()) {
|
|
list_ = other.list_;
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
} else {
|
|
ensureListIsMutable();
|
|
list_.addAll(other.list_);
|
|
}
|
|
onChanged();
|
|
}
|
|
} else {
|
|
if (!other.list_.isEmpty()) {
|
|
if (listBuilder_.isEmpty()) {
|
|
listBuilder_.dispose();
|
|
listBuilder_ = null;
|
|
list_ = other.list_;
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
listBuilder_ =
|
|
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
|
|
getListFieldBuilder() : null;
|
|
} else {
|
|
listBuilder_.addAllMessages(other.list_);
|
|
}
|
|
}
|
|
}
|
|
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.ApiDeviceListProto.DeviceListInfoResponse parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse) e.getUnfinishedMessage();
|
|
throw e.unwrapIOException();
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
private int bitField0_;
|
|
|
|
private java.util.List<com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile> list_ =
|
|
java.util.Collections.emptyList();
|
|
private void ensureListIsMutable() {
|
|
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
list_ = new java.util.ArrayList<com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile>(list_);
|
|
bitField0_ |= 0x00000001;
|
|
}
|
|
}
|
|
|
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder> listBuilder_;
|
|
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public java.util.List<com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile> getListList() {
|
|
if (listBuilder_ == null) {
|
|
return java.util.Collections.unmodifiableList(list_);
|
|
} else {
|
|
return listBuilder_.getMessageList();
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public int getListCount() {
|
|
if (listBuilder_ == null) {
|
|
return list_.size();
|
|
} else {
|
|
return listBuilder_.getCount();
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile getList(int index) {
|
|
if (listBuilder_ == null) {
|
|
return list_.get(index);
|
|
} else {
|
|
return listBuilder_.getMessage(index);
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public Builder setList(
|
|
int index, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile value) {
|
|
if (listBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureListIsMutable();
|
|
list_.set(index, value);
|
|
onChanged();
|
|
} else {
|
|
listBuilder_.setMessage(index, value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public Builder setList(
|
|
int index, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder builderForValue) {
|
|
if (listBuilder_ == null) {
|
|
ensureListIsMutable();
|
|
list_.set(index, builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
listBuilder_.setMessage(index, builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public Builder addList(com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile value) {
|
|
if (listBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureListIsMutable();
|
|
list_.add(value);
|
|
onChanged();
|
|
} else {
|
|
listBuilder_.addMessage(value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public Builder addList(
|
|
int index, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile value) {
|
|
if (listBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureListIsMutable();
|
|
list_.add(index, value);
|
|
onChanged();
|
|
} else {
|
|
listBuilder_.addMessage(index, value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public Builder addList(
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder builderForValue) {
|
|
if (listBuilder_ == null) {
|
|
ensureListIsMutable();
|
|
list_.add(builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
listBuilder_.addMessage(builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public Builder addList(
|
|
int index, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder builderForValue) {
|
|
if (listBuilder_ == null) {
|
|
ensureListIsMutable();
|
|
list_.add(index, builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
listBuilder_.addMessage(index, builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public Builder addAllList(
|
|
java.lang.Iterable<? extends com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile> values) {
|
|
if (listBuilder_ == null) {
|
|
ensureListIsMutable();
|
|
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
|
values, list_);
|
|
onChanged();
|
|
} else {
|
|
listBuilder_.addAllMessages(values);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public Builder clearList() {
|
|
if (listBuilder_ == null) {
|
|
list_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
onChanged();
|
|
} else {
|
|
listBuilder_.clear();
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public Builder removeList(int index) {
|
|
if (listBuilder_ == null) {
|
|
ensureListIsMutable();
|
|
list_.remove(index);
|
|
onChanged();
|
|
} else {
|
|
listBuilder_.remove(index);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder getListBuilder(
|
|
int index) {
|
|
return getListFieldBuilder().getBuilder(index);
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder getListOrBuilder(
|
|
int index) {
|
|
if (listBuilder_ == null) {
|
|
return list_.get(index); } else {
|
|
return listBuilder_.getMessageOrBuilder(index);
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public java.util.List<? extends com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder>
|
|
getListOrBuilderList() {
|
|
if (listBuilder_ != null) {
|
|
return listBuilder_.getMessageOrBuilderList();
|
|
} else {
|
|
return java.util.Collections.unmodifiableList(list_);
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder addListBuilder() {
|
|
return getListFieldBuilder().addBuilder(
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.getDefaultInstance());
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder addListBuilder(
|
|
int index) {
|
|
return getListFieldBuilder().addBuilder(
|
|
index, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.getDefaultInstance());
|
|
}
|
|
/**
|
|
* <pre>
|
|
*设备列表信息
|
|
* </pre>
|
|
*
|
|
* <code>repeated .core.SimpleDeviceProfile list = 1;</code>
|
|
*/
|
|
public java.util.List<com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder>
|
|
getListBuilderList() {
|
|
return getListFieldBuilder().getBuilderList();
|
|
}
|
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder>
|
|
getListFieldBuilder() {
|
|
if (listBuilder_ == null) {
|
|
listBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
|
com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfile.Builder, com.akaxin.proto.core.DeviceProto.SimpleDeviceProfileOrBuilder>(
|
|
list_,
|
|
((bitField0_ & 0x00000001) == 0x00000001),
|
|
getParentForChildren(),
|
|
isClean());
|
|
list_ = null;
|
|
}
|
|
return listBuilder_;
|
|
}
|
|
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.DeviceListInfoResponse)
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:site.DeviceListInfoResponse)
|
|
private static final com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse DEFAULT_INSTANCE;
|
|
static {
|
|
DEFAULT_INSTANCE = new com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse();
|
|
}
|
|
|
|
public static com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse getDefaultInstance() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
private static final com.google.protobuf.Parser<DeviceListInfoResponse>
|
|
PARSER = new com.google.protobuf.AbstractParser<DeviceListInfoResponse>() {
|
|
public DeviceListInfoResponse parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new DeviceListInfoResponse(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
public static com.google.protobuf.Parser<DeviceListInfoResponse> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<DeviceListInfoResponse> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiDeviceListProto.DeviceListInfoResponse getDefaultInstanceForType() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
}
|
|
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_site_DeviceListInfoRequest_descriptor;
|
|
private static final
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internal_static_site_DeviceListInfoRequest_fieldAccessorTable;
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_site_DeviceListInfoResponse_descriptor;
|
|
private static final
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internal_static_site_DeviceListInfoResponse_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\032site/api_device_list.proto\022\004site\032\021core" +
|
|
"/device.proto\"U\n\025DeviceListInfoRequest\022\024" +
|
|
"\n\014site_user_id\030\001 \001(\t\022\023\n\013page_number\030\002 \001(" +
|
|
"\005\022\021\n\tpage_size\030\003 \001(\005\"A\n\026DeviceListInfoRe" +
|
|
"sponse\022\'\n\004list\030\001 \003(\0132\031.core.SimpleDevice" +
|
|
"Profile2Y\n\024ApiDeviceListService\022A\n\004list\022" +
|
|
"\033.site.DeviceListInfoRequest\032\034.site.Devi" +
|
|
"ceListInfoResponseB+\n\025com.akaxin.proto.s" +
|
|
"iteB\022ApiDeviceListProtob\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_DeviceListInfoRequest_descriptor =
|
|
getDescriptor().getMessageTypes().get(0);
|
|
internal_static_site_DeviceListInfoRequest_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
internal_static_site_DeviceListInfoRequest_descriptor,
|
|
new java.lang.String[] { "SiteUserId", "PageNumber", "PageSize", });
|
|
internal_static_site_DeviceListInfoResponse_descriptor =
|
|
getDescriptor().getMessageTypes().get(1);
|
|
internal_static_site_DeviceListInfoResponse_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
internal_static_site_DeviceListInfoResponse_descriptor,
|
|
new java.lang.String[] { "List", });
|
|
com.akaxin.proto.core.DeviceProto.getDescriptor();
|
|
}
|
|
|
|
// @@protoc_insertion_point(outer_class_scope)
|
|
}
|