Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.envision.energy.connective.protobuf.generated.Sdk Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: sdk.proto
package com.envision.energy.connective.protobuf.generated;
public final class Sdk {
private Sdk() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code com.envision.energy.connective.protobuf.generated.CmdId}
*/
public enum CmdId
implements com.google.protobuf.ProtocolMessageEnum {
/**
* kv_pair_record = 0;
*/
kv_pair_record(0, 0),
/**
* auth_req = 1;
*/
auth_req(1, 1),
/**
* auth_res = 2;
*/
auth_res(2, 2),
/**
* idle_req = 3;
*/
idle_req(3, 3),
/**
* idle_rsp = 4;
*/
idle_rsp(4, 4),
/**
* sub_id = 5;
*/
sub_id(5, 5),
/**
* alert_req = 6;
*/
alert_req(6, 6),
/**
* sub_all_data_req = 7;
*/
sub_all_data_req(7, 7),
/**
* sub_dev_data_req = 8;
*/
sub_dev_data_req(8, 8),
/**
* sub_domain_data_req = 9;
*/
sub_domain_data_req(9, 9),
/**
* sub_all_alarm_req = 10;
*/
sub_all_alarm_req(10, 10),
/**
* point_detail = 11;
*/
point_detail(11, 11),
/**
* sub_event_customer_req = 12;
*/
sub_event_customer_req(12, 12),
/**
* event_req = 13;
*/
event_req(13, 13),
/**
* sub_asset_change_req = 14;
*/
sub_asset_change_req(14, 14),
/**
* asset_change_rsp = 15;
*/
asset_change_rsp(15, 15),
/**
* redirect_rsp = 16;
*/
redirect_rsp(16, 16),
/**
* sub_eventv2_customer_req = 17;
*/
sub_eventv2_customer_req(17, 17),
/**
* eventv2_req = 18;
*/
eventv2_req(18, 18),
;
/**
* kv_pair_record = 0;
*/
public static final int kv_pair_record_VALUE = 0;
/**
* auth_req = 1;
*/
public static final int auth_req_VALUE = 1;
/**
* auth_res = 2;
*/
public static final int auth_res_VALUE = 2;
/**
* idle_req = 3;
*/
public static final int idle_req_VALUE = 3;
/**
* idle_rsp = 4;
*/
public static final int idle_rsp_VALUE = 4;
/**
* sub_id = 5;
*/
public static final int sub_id_VALUE = 5;
/**
* alert_req = 6;
*/
public static final int alert_req_VALUE = 6;
/**
* sub_all_data_req = 7;
*/
public static final int sub_all_data_req_VALUE = 7;
/**
* sub_dev_data_req = 8;
*/
public static final int sub_dev_data_req_VALUE = 8;
/**
* sub_domain_data_req = 9;
*/
public static final int sub_domain_data_req_VALUE = 9;
/**
* sub_all_alarm_req = 10;
*/
public static final int sub_all_alarm_req_VALUE = 10;
/**
* point_detail = 11;
*/
public static final int point_detail_VALUE = 11;
/**
* sub_event_customer_req = 12;
*/
public static final int sub_event_customer_req_VALUE = 12;
/**
* event_req = 13;
*/
public static final int event_req_VALUE = 13;
/**
* sub_asset_change_req = 14;
*/
public static final int sub_asset_change_req_VALUE = 14;
/**
* asset_change_rsp = 15;
*/
public static final int asset_change_rsp_VALUE = 15;
/**
* redirect_rsp = 16;
*/
public static final int redirect_rsp_VALUE = 16;
/**
* sub_eventv2_customer_req = 17;
*/
public static final int sub_eventv2_customer_req_VALUE = 17;
/**
* eventv2_req = 18;
*/
public static final int eventv2_req_VALUE = 18;
public final int getNumber() { return value; }
public static CmdId valueOf(int value) {
switch (value) {
case 0: return kv_pair_record;
case 1: return auth_req;
case 2: return auth_res;
case 3: return idle_req;
case 4: return idle_rsp;
case 5: return sub_id;
case 6: return alert_req;
case 7: return sub_all_data_req;
case 8: return sub_dev_data_req;
case 9: return sub_domain_data_req;
case 10: return sub_all_alarm_req;
case 11: return point_detail;
case 12: return sub_event_customer_req;
case 13: return event_req;
case 14: return sub_asset_change_req;
case 15: return asset_change_rsp;
case 16: return redirect_rsp;
case 17: return sub_eventv2_customer_req;
case 18: return eventv2_req;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CmdId findValueByNumber(int number) {
return CmdId.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return Sdk.getDescriptor().getEnumTypes().get(0);
}
private static final CmdId[] VALUES = values();
public static CmdId valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private CmdId(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.envision.energy.connective.protobuf.generated.CmdId)
}
/**
* Protobuf enum {@code com.envision.energy.connective.protobuf.generated.SubType}
*/
public enum SubType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* unsub = 0;
*/
unsub(0, 0),
/**
* sub = 1;
*/
sub(1, 1),
/**
* ptsub = 2;
*
*
*sub PointCal
*
*/
ptsub(2, 2),
;
/**
* unsub = 0;
*/
public static final int unsub_VALUE = 0;
/**
* sub = 1;
*/
public static final int sub_VALUE = 1;
/**
* ptsub = 2;
*
*
*sub PointCal
*
*/
public static final int ptsub_VALUE = 2;
public final int getNumber() { return value; }
public static SubType valueOf(int value) {
switch (value) {
case 0: return unsub;
case 1: return sub;
case 2: return ptsub;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SubType findValueByNumber(int number) {
return SubType.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return Sdk.getDescriptor().getEnumTypes().get(1);
}
private static final SubType[] VALUES = values();
public static SubType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private SubType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.envision.energy.connective.protobuf.generated.SubType)
}
public interface IdleReqOrBuilder
extends com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.IdleReq}
*/
public static final class IdleReq extends
com.google.protobuf.GeneratedMessage
implements IdleReqOrBuilder {
// Use IdleReq.newBuilder() to construct.
private IdleReq(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IdleReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IdleReq defaultInstance;
public static IdleReq getDefaultInstance() {
return defaultInstance;
}
public IdleReq getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IdleReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_IdleReq_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_IdleReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
IdleReq.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public IdleReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IdleReq(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static IdleReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static IdleReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static IdleReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static IdleReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static IdleReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static IdleReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static IdleReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static IdleReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static IdleReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static IdleReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(IdleReq prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.IdleReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements IdleReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_IdleReq_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_IdleReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
IdleReq.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.IdleReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_IdleReq_descriptor;
}
public IdleReq getDefaultInstanceForType() {
return IdleReq.getDefaultInstance();
}
public IdleReq build() {
IdleReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public IdleReq buildPartial() {
IdleReq result = new IdleReq(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof IdleReq) {
return mergeFrom((IdleReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(IdleReq other) {
if (other == IdleReq.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
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 {
IdleReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (IdleReq) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.IdleReq)
}
static {
defaultInstance = new IdleReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.IdleReq)
}
public interface IdleRspOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required int64 svrTime = 1;
/**
* required int64 svrTime = 1;
*/
boolean hasSvrTime();
/**
* required int64 svrTime = 1;
*/
long getSvrTime();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.IdleRsp}
*/
public static final class IdleRsp extends
com.google.protobuf.GeneratedMessage
implements IdleRspOrBuilder {
// Use IdleRsp.newBuilder() to construct.
private IdleRsp(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IdleRsp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IdleRsp defaultInstance;
public static IdleRsp getDefaultInstance() {
return defaultInstance;
}
public IdleRsp getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IdleRsp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
svrTime_ = 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.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_IdleRsp_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_IdleRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
IdleRsp.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public IdleRsp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IdleRsp(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required int64 svrTime = 1;
public static final int SVRTIME_FIELD_NUMBER = 1;
private long svrTime_;
/**
* required int64 svrTime = 1;
*/
public boolean hasSvrTime() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int64 svrTime = 1;
*/
public long getSvrTime() {
return svrTime_;
}
private void initFields() {
svrTime_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSvrTime()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, svrTime_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, svrTime_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static IdleRsp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static IdleRsp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static IdleRsp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static IdleRsp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static IdleRsp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static IdleRsp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static IdleRsp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static IdleRsp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static IdleRsp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static IdleRsp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(IdleRsp prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.IdleRsp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements IdleRspOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_IdleRsp_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_IdleRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
IdleRsp.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.IdleRsp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
svrTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_IdleRsp_descriptor;
}
public IdleRsp getDefaultInstanceForType() {
return IdleRsp.getDefaultInstance();
}
public IdleRsp build() {
IdleRsp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public IdleRsp buildPartial() {
IdleRsp result = new IdleRsp(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.svrTime_ = svrTime_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof IdleRsp) {
return mergeFrom((IdleRsp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(IdleRsp other) {
if (other == IdleRsp.getDefaultInstance()) return this;
if (other.hasSvrTime()) {
setSvrTime(other.getSvrTime());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSvrTime()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
IdleRsp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (IdleRsp) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required int64 svrTime = 1;
private long svrTime_ ;
/**
* required int64 svrTime = 1;
*/
public boolean hasSvrTime() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int64 svrTime = 1;
*/
public long getSvrTime() {
return svrTime_;
}
/**
* required int64 svrTime = 1;
*/
public Builder setSvrTime(long value) {
bitField0_ |= 0x00000001;
svrTime_ = value;
onChanged();
return this;
}
/**
* required int64 svrTime = 1;
*/
public Builder clearSvrTime() {
bitField0_ = (bitField0_ & ~0x00000001);
svrTime_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.IdleRsp)
}
static {
defaultInstance = new IdleRsp(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.IdleRsp)
}
public interface SubAllDataOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
boolean hasSubType();
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
SubType getSubType();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubAllData}
*
*
*messages that is sent to server
*
*/
public static final class SubAllData extends
com.google.protobuf.GeneratedMessage
implements SubAllDataOrBuilder {
// Use SubAllData.newBuilder() to construct.
private SubAllData(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SubAllData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SubAllData defaultInstance;
public static SubAllData getDefaultInstance() {
return defaultInstance;
}
public SubAllData getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubAllData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
SubType value = SubType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
subType_ = value;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAllData_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAllData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubAllData.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SubAllData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubAllData(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
public static final int SUBTYPE_FIELD_NUMBER = 1;
private SubType subType_;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public boolean hasSubType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public SubType getSubType() {
return subType_;
}
private void initFields() {
subType_ = SubType.unsub;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSubType()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, subType_.getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, subType_.getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static SubAllData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubAllData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubAllData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubAllData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubAllData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubAllData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static SubAllData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static SubAllData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static SubAllData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubAllData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(SubAllData prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubAllData}
*
*
*messages that is sent to server
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements SubAllDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAllData_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAllData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubAllData.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.SubAllData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
subType_ = SubType.unsub;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAllData_descriptor;
}
public SubAllData getDefaultInstanceForType() {
return SubAllData.getDefaultInstance();
}
public SubAllData build() {
SubAllData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public SubAllData buildPartial() {
SubAllData result = new SubAllData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.subType_ = subType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof SubAllData) {
return mergeFrom((SubAllData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(SubAllData other) {
if (other == SubAllData.getDefaultInstance()) return this;
if (other.hasSubType()) {
setSubType(other.getSubType());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSubType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
SubAllData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (SubAllData) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
private SubType subType_ = SubType.unsub;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public boolean hasSubType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public SubType getSubType() {
return subType_;
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public Builder setSubType(SubType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
subType_ = value;
onChanged();
return this;
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public Builder clearSubType() {
bitField0_ = (bitField0_ & ~0x00000001);
subType_ = SubType.unsub;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.SubAllData)
}
static {
defaultInstance = new SubAllData(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.SubAllData)
}
public interface PointInfoReqOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string device = 1;
/**
* required string device = 1;
*/
boolean hasDevice();
/**
* required string device = 1;
*/
String getDevice();
/**
* required string device = 1;
*/
com.google.protobuf.ByteString
getDeviceBytes();
// required string point = 2;
/**
* required string point = 2;
*/
boolean hasPoint();
/**
* required string point = 2;
*/
String getPoint();
/**
* required string point = 2;
*/
com.google.protobuf.ByteString
getPointBytes();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.PointInfoReq}
*/
public static final class PointInfoReq extends
com.google.protobuf.GeneratedMessage
implements PointInfoReqOrBuilder {
// Use PointInfoReq.newBuilder() to construct.
private PointInfoReq(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private PointInfoReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final PointInfoReq defaultInstance;
public static PointInfoReq getDefaultInstance() {
return defaultInstance;
}
public PointInfoReq getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PointInfoReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
device_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
point_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_PointInfoReq_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_PointInfoReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
PointInfoReq.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public PointInfoReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PointInfoReq(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string device = 1;
public static final int DEVICE_FIELD_NUMBER = 1;
private Object device_;
/**
* required string device = 1;
*/
public boolean hasDevice() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string device = 1;
*/
public String getDevice() {
Object ref = device_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
device_ = s;
}
return s;
}
}
/**
* required string device = 1;
*/
public com.google.protobuf.ByteString
getDeviceBytes() {
Object ref = device_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
device_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string point = 2;
public static final int POINT_FIELD_NUMBER = 2;
private Object point_;
/**
* required string point = 2;
*/
public boolean hasPoint() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string point = 2;
*/
public String getPoint() {
Object ref = point_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
point_ = s;
}
return s;
}
}
/**
* required string point = 2;
*/
public com.google.protobuf.ByteString
getPointBytes() {
Object ref = point_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
point_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
device_ = "";
point_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasDevice()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasPoint()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getDeviceBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getPointBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getDeviceBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getPointBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static PointInfoReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static PointInfoReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static PointInfoReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static PointInfoReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static PointInfoReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static PointInfoReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static PointInfoReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static PointInfoReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static PointInfoReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static PointInfoReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(PointInfoReq prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.PointInfoReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements PointInfoReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_PointInfoReq_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_PointInfoReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
PointInfoReq.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.PointInfoReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
device_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
point_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_PointInfoReq_descriptor;
}
public PointInfoReq getDefaultInstanceForType() {
return PointInfoReq.getDefaultInstance();
}
public PointInfoReq build() {
PointInfoReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public PointInfoReq buildPartial() {
PointInfoReq result = new PointInfoReq(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.device_ = device_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.point_ = point_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof PointInfoReq) {
return mergeFrom((PointInfoReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(PointInfoReq other) {
if (other == PointInfoReq.getDefaultInstance()) return this;
if (other.hasDevice()) {
bitField0_ |= 0x00000001;
device_ = other.device_;
onChanged();
}
if (other.hasPoint()) {
bitField0_ |= 0x00000002;
point_ = other.point_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasDevice()) {
return false;
}
if (!hasPoint()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
PointInfoReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (PointInfoReq) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string device = 1;
private Object device_ = "";
/**
* required string device = 1;
*/
public boolean hasDevice() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string device = 1;
*/
public String getDevice() {
Object ref = device_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
device_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string device = 1;
*/
public com.google.protobuf.ByteString
getDeviceBytes() {
Object ref = device_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
device_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string device = 1;
*/
public Builder setDevice(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
device_ = value;
onChanged();
return this;
}
/**
* required string device = 1;
*/
public Builder clearDevice() {
bitField0_ = (bitField0_ & ~0x00000001);
device_ = getDefaultInstance().getDevice();
onChanged();
return this;
}
/**
* required string device = 1;
*/
public Builder setDeviceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
device_ = value;
onChanged();
return this;
}
// required string point = 2;
private Object point_ = "";
/**
* required string point = 2;
*/
public boolean hasPoint() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string point = 2;
*/
public String getPoint() {
Object ref = point_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
point_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string point = 2;
*/
public com.google.protobuf.ByteString
getPointBytes() {
Object ref = point_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
point_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string point = 2;
*/
public Builder setPoint(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
point_ = value;
onChanged();
return this;
}
/**
* required string point = 2;
*/
public Builder clearPoint() {
bitField0_ = (bitField0_ & ~0x00000002);
point_ = getDefaultInstance().getPoint();
onChanged();
return this;
}
/**
* required string point = 2;
*/
public Builder setPointBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
point_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.PointInfoReq)
}
static {
defaultInstance = new PointInfoReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.PointInfoReq)
}
public interface SubDevDataOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
java.util.List
getDevPtsList();
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
PointInfoReq getDevPts(int index);
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
int getDevPtsCount();
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
java.util.List extends PointInfoReqOrBuilder>
getDevPtsOrBuilderList();
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
PointInfoReqOrBuilder getDevPtsOrBuilder(
int index);
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 2;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 2;
*/
boolean hasSubType();
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 2;
*/
SubType getSubType();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubDevData}
*/
public static final class SubDevData extends
com.google.protobuf.GeneratedMessage
implements SubDevDataOrBuilder {
// Use SubDevData.newBuilder() to construct.
private SubDevData(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SubDevData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SubDevData defaultInstance;
public static SubDevData getDefaultInstance() {
return defaultInstance;
}
public SubDevData getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubDevData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
devPts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
devPts_.add(input.readMessage(PointInfoReq.PARSER, extensionRegistry));
break;
}
case 16: {
int rawValue = input.readEnum();
SubType value = SubType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000001;
subType_ = value;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
devPts_ = java.util.Collections.unmodifiableList(devPts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubDevData_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubDevData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubDevData.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SubDevData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubDevData(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
public static final int DEVPTS_FIELD_NUMBER = 1;
private java.util.List devPts_;
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public java.util.List getDevPtsList() {
return devPts_;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public java.util.List extends PointInfoReqOrBuilder>
getDevPtsOrBuilderList() {
return devPts_;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public int getDevPtsCount() {
return devPts_.size();
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public PointInfoReq getDevPts(int index) {
return devPts_.get(index);
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public PointInfoReqOrBuilder getDevPtsOrBuilder(
int index) {
return devPts_.get(index);
}
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 2;
public static final int SUBTYPE_FIELD_NUMBER = 2;
private SubType subType_;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 2;
*/
public boolean hasSubType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 2;
*/
public SubType getSubType() {
return subType_;
}
private void initFields() {
devPts_ = java.util.Collections.emptyList();
subType_ = SubType.unsub;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSubType()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getDevPtsCount(); i++) {
if (!getDevPts(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < devPts_.size(); i++) {
output.writeMessage(1, devPts_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(2, subType_.getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < devPts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, devPts_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, subType_.getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static SubDevData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubDevData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubDevData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubDevData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubDevData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubDevData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static SubDevData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static SubDevData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static SubDevData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubDevData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(SubDevData prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubDevData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements SubDevDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubDevData_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubDevData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubDevData.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.SubDevData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getDevPtsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (devPtsBuilder_ == null) {
devPts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
devPtsBuilder_.clear();
}
subType_ = SubType.unsub;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubDevData_descriptor;
}
public SubDevData getDefaultInstanceForType() {
return SubDevData.getDefaultInstance();
}
public SubDevData build() {
SubDevData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public SubDevData buildPartial() {
SubDevData result = new SubDevData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (devPtsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
devPts_ = java.util.Collections.unmodifiableList(devPts_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.devPts_ = devPts_;
} else {
result.devPts_ = devPtsBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.subType_ = subType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof SubDevData) {
return mergeFrom((SubDevData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(SubDevData other) {
if (other == SubDevData.getDefaultInstance()) return this;
if (devPtsBuilder_ == null) {
if (!other.devPts_.isEmpty()) {
if (devPts_.isEmpty()) {
devPts_ = other.devPts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDevPtsIsMutable();
devPts_.addAll(other.devPts_);
}
onChanged();
}
} else {
if (!other.devPts_.isEmpty()) {
if (devPtsBuilder_.isEmpty()) {
devPtsBuilder_.dispose();
devPtsBuilder_ = null;
devPts_ = other.devPts_;
bitField0_ = (bitField0_ & ~0x00000001);
devPtsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getDevPtsFieldBuilder() : null;
} else {
devPtsBuilder_.addAllMessages(other.devPts_);
}
}
}
if (other.hasSubType()) {
setSubType(other.getSubType());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSubType()) {
return false;
}
for (int i = 0; i < getDevPtsCount(); i++) {
if (!getDevPts(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
SubDevData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (SubDevData) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
private java.util.List devPts_ =
java.util.Collections.emptyList();
private void ensureDevPtsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
devPts_ = new java.util.ArrayList(devPts_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
PointInfoReq, PointInfoReq.Builder, PointInfoReqOrBuilder> devPtsBuilder_;
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public java.util.List getDevPtsList() {
if (devPtsBuilder_ == null) {
return java.util.Collections.unmodifiableList(devPts_);
} else {
return devPtsBuilder_.getMessageList();
}
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public int getDevPtsCount() {
if (devPtsBuilder_ == null) {
return devPts_.size();
} else {
return devPtsBuilder_.getCount();
}
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public PointInfoReq getDevPts(int index) {
if (devPtsBuilder_ == null) {
return devPts_.get(index);
} else {
return devPtsBuilder_.getMessage(index);
}
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public Builder setDevPts(
int index, PointInfoReq value) {
if (devPtsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDevPtsIsMutable();
devPts_.set(index, value);
onChanged();
} else {
devPtsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public Builder setDevPts(
int index, PointInfoReq.Builder builderForValue) {
if (devPtsBuilder_ == null) {
ensureDevPtsIsMutable();
devPts_.set(index, builderForValue.build());
onChanged();
} else {
devPtsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public Builder addDevPts(PointInfoReq value) {
if (devPtsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDevPtsIsMutable();
devPts_.add(value);
onChanged();
} else {
devPtsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public Builder addDevPts(
int index, PointInfoReq value) {
if (devPtsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDevPtsIsMutable();
devPts_.add(index, value);
onChanged();
} else {
devPtsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public Builder addDevPts(
PointInfoReq.Builder builderForValue) {
if (devPtsBuilder_ == null) {
ensureDevPtsIsMutable();
devPts_.add(builderForValue.build());
onChanged();
} else {
devPtsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public Builder addDevPts(
int index, PointInfoReq.Builder builderForValue) {
if (devPtsBuilder_ == null) {
ensureDevPtsIsMutable();
devPts_.add(index, builderForValue.build());
onChanged();
} else {
devPtsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public Builder addAllDevPts(
Iterable extends PointInfoReq> values) {
if (devPtsBuilder_ == null) {
ensureDevPtsIsMutable();
super.addAll(values, devPts_);
onChanged();
} else {
devPtsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public Builder clearDevPts() {
if (devPtsBuilder_ == null) {
devPts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
devPtsBuilder_.clear();
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public Builder removeDevPts(int index) {
if (devPtsBuilder_ == null) {
ensureDevPtsIsMutable();
devPts_.remove(index);
onChanged();
} else {
devPtsBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public PointInfoReq.Builder getDevPtsBuilder(
int index) {
return getDevPtsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public PointInfoReqOrBuilder getDevPtsOrBuilder(
int index) {
if (devPtsBuilder_ == null) {
return devPts_.get(index); } else {
return devPtsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public java.util.List extends PointInfoReqOrBuilder>
getDevPtsOrBuilderList() {
if (devPtsBuilder_ != null) {
return devPtsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(devPts_);
}
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public PointInfoReq.Builder addDevPtsBuilder() {
return getDevPtsFieldBuilder().addBuilder(
PointInfoReq.getDefaultInstance());
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public PointInfoReq.Builder addDevPtsBuilder(
int index) {
return getDevPtsFieldBuilder().addBuilder(
index, PointInfoReq.getDefaultInstance());
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.PointInfoReq devPts = 1;
*/
public java.util.List
getDevPtsBuilderList() {
return getDevPtsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
PointInfoReq, PointInfoReq.Builder, PointInfoReqOrBuilder>
getDevPtsFieldBuilder() {
if (devPtsBuilder_ == null) {
devPtsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
PointInfoReq, PointInfoReq.Builder, PointInfoReqOrBuilder>(
devPts_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
devPts_ = null;
}
return devPtsBuilder_;
}
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 2;
private SubType subType_ = SubType.unsub;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 2;
*/
public boolean hasSubType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 2;
*/
public SubType getSubType() {
return subType_;
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 2;
*/
public Builder setSubType(SubType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
subType_ = value;
onChanged();
return this;
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 2;
*/
public Builder clearSubType() {
bitField0_ = (bitField0_ & ~0x00000002);
subType_ = SubType.unsub;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.SubDevData)
}
static {
defaultInstance = new SubDevData(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.SubDevData)
}
public interface SubDomainDataOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string domain = 1;
/**
* required string domain = 1;
*/
boolean hasDomain();
/**
* required string domain = 1;
*/
String getDomain();
/**
* required string domain = 1;
*/
com.google.protobuf.ByteString
getDomainBytes();
// repeated string points = 2;
/**
* repeated string points = 2;
*/
java.util.List
getPointsList();
/**
* repeated string points = 2;
*/
int getPointsCount();
/**
* repeated string points = 2;
*/
String getPoints(int index);
/**
* repeated string points = 2;
*/
com.google.protobuf.ByteString
getPointsBytes(int index);
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 3;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 3;
*/
boolean hasSubType();
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 3;
*/
SubType getSubType();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubDomainData}
*/
public static final class SubDomainData extends
com.google.protobuf.GeneratedMessage
implements SubDomainDataOrBuilder {
// Use SubDomainData.newBuilder() to construct.
private SubDomainData(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SubDomainData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SubDomainData defaultInstance;
public static SubDomainData getDefaultInstance() {
return defaultInstance;
}
public SubDomainData getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubDomainData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
domain_ = input.readBytes();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
points_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
points_.add(input.readBytes());
break;
}
case 24: {
int rawValue = input.readEnum();
SubType value = SubType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000002;
subType_ = value;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
points_ = new com.google.protobuf.UnmodifiableLazyStringList(points_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubDomainData_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubDomainData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubDomainData.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SubDomainData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubDomainData(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string domain = 1;
public static final int DOMAIN_FIELD_NUMBER = 1;
private Object domain_;
/**
* required string domain = 1;
*/
public boolean hasDomain() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string domain = 1;
*/
public String getDomain() {
Object ref = domain_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
domain_ = s;
}
return s;
}
}
/**
* required string domain = 1;
*/
public com.google.protobuf.ByteString
getDomainBytes() {
Object ref = domain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
domain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// repeated string points = 2;
public static final int POINTS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList points_;
/**
* repeated string points = 2;
*/
public java.util.List
getPointsList() {
return points_;
}
/**
* repeated string points = 2;
*/
public int getPointsCount() {
return points_.size();
}
/**
* repeated string points = 2;
*/
public String getPoints(int index) {
return points_.get(index);
}
/**
* repeated string points = 2;
*/
public com.google.protobuf.ByteString
getPointsBytes(int index) {
return points_.getByteString(index);
}
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 3;
public static final int SUBTYPE_FIELD_NUMBER = 3;
private SubType subType_;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 3;
*/
public boolean hasSubType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 3;
*/
public SubType getSubType() {
return subType_;
}
private void initFields() {
domain_ = "";
points_ = com.google.protobuf.LazyStringArrayList.EMPTY;
subType_ = SubType.unsub;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasDomain()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSubType()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getDomainBytes());
}
for (int i = 0; i < points_.size(); i++) {
output.writeBytes(2, points_.getByteString(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(3, subType_.getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getDomainBytes());
}
{
int dataSize = 0;
for (int i = 0; i < points_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(points_.getByteString(i));
}
size += dataSize;
size += 1 * getPointsList().size();
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, subType_.getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static SubDomainData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubDomainData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubDomainData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubDomainData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubDomainData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubDomainData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static SubDomainData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static SubDomainData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static SubDomainData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubDomainData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(SubDomainData prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubDomainData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements SubDomainDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubDomainData_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubDomainData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubDomainData.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.SubDomainData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
domain_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
points_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
subType_ = SubType.unsub;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubDomainData_descriptor;
}
public SubDomainData getDefaultInstanceForType() {
return SubDomainData.getDefaultInstance();
}
public SubDomainData build() {
SubDomainData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public SubDomainData buildPartial() {
SubDomainData result = new SubDomainData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.domain_ = domain_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
points_ = new com.google.protobuf.UnmodifiableLazyStringList(
points_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.points_ = points_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.subType_ = subType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof SubDomainData) {
return mergeFrom((SubDomainData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(SubDomainData other) {
if (other == SubDomainData.getDefaultInstance()) return this;
if (other.hasDomain()) {
bitField0_ |= 0x00000001;
domain_ = other.domain_;
onChanged();
}
if (!other.points_.isEmpty()) {
if (points_.isEmpty()) {
points_ = other.points_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePointsIsMutable();
points_.addAll(other.points_);
}
onChanged();
}
if (other.hasSubType()) {
setSubType(other.getSubType());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasDomain()) {
return false;
}
if (!hasSubType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
SubDomainData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (SubDomainData) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string domain = 1;
private Object domain_ = "";
/**
* required string domain = 1;
*/
public boolean hasDomain() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string domain = 1;
*/
public String getDomain() {
Object ref = domain_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
domain_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string domain = 1;
*/
public com.google.protobuf.ByteString
getDomainBytes() {
Object ref = domain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
domain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string domain = 1;
*/
public Builder setDomain(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
domain_ = value;
onChanged();
return this;
}
/**
* required string domain = 1;
*/
public Builder clearDomain() {
bitField0_ = (bitField0_ & ~0x00000001);
domain_ = getDefaultInstance().getDomain();
onChanged();
return this;
}
/**
* required string domain = 1;
*/
public Builder setDomainBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
domain_ = value;
onChanged();
return this;
}
// repeated string points = 2;
private com.google.protobuf.LazyStringList points_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePointsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
points_ = new com.google.protobuf.LazyStringArrayList(points_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated string points = 2;
*/
public java.util.List
getPointsList() {
return java.util.Collections.unmodifiableList(points_);
}
/**
* repeated string points = 2;
*/
public int getPointsCount() {
return points_.size();
}
/**
* repeated string points = 2;
*/
public String getPoints(int index) {
return points_.get(index);
}
/**
* repeated string points = 2;
*/
public com.google.protobuf.ByteString
getPointsBytes(int index) {
return points_.getByteString(index);
}
/**
* repeated string points = 2;
*/
public Builder setPoints(
int index, String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePointsIsMutable();
points_.set(index, value);
onChanged();
return this;
}
/**
* repeated string points = 2;
*/
public Builder addPoints(
String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePointsIsMutable();
points_.add(value);
onChanged();
return this;
}
/**
* repeated string points = 2;
*/
public Builder addAllPoints(
Iterable values) {
ensurePointsIsMutable();
super.addAll(values, points_);
onChanged();
return this;
}
/**
* repeated string points = 2;
*/
public Builder clearPoints() {
points_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* repeated string points = 2;
*/
public Builder addPointsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePointsIsMutable();
points_.add(value);
onChanged();
return this;
}
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 3;
private SubType subType_ = SubType.unsub;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 3;
*/
public boolean hasSubType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 3;
*/
public SubType getSubType() {
return subType_;
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 3;
*/
public Builder setSubType(SubType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
subType_ = value;
onChanged();
return this;
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 3;
*/
public Builder clearSubType() {
bitField0_ = (bitField0_ & ~0x00000004);
subType_ = SubType.unsub;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.SubDomainData)
}
static {
defaultInstance = new SubDomainData(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.SubDomainData)
}
public interface SubAllAlarmOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
boolean hasSubType();
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
SubType getSubType();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubAllAlarm}
*/
public static final class SubAllAlarm extends
com.google.protobuf.GeneratedMessage
implements SubAllAlarmOrBuilder {
// Use SubAllAlarm.newBuilder() to construct.
private SubAllAlarm(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SubAllAlarm(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SubAllAlarm defaultInstance;
public static SubAllAlarm getDefaultInstance() {
return defaultInstance;
}
public SubAllAlarm getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubAllAlarm(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
SubType value = SubType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
subType_ = value;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAllAlarm_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAllAlarm_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubAllAlarm.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SubAllAlarm parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubAllAlarm(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
public static final int SUBTYPE_FIELD_NUMBER = 1;
private SubType subType_;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public boolean hasSubType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public SubType getSubType() {
return subType_;
}
private void initFields() {
subType_ = SubType.unsub;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSubType()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, subType_.getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, subType_.getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static SubAllAlarm parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubAllAlarm parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubAllAlarm parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubAllAlarm parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubAllAlarm parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubAllAlarm parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static SubAllAlarm parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static SubAllAlarm parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static SubAllAlarm parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubAllAlarm parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(SubAllAlarm prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubAllAlarm}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements SubAllAlarmOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAllAlarm_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAllAlarm_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubAllAlarm.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.SubAllAlarm.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
subType_ = SubType.unsub;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAllAlarm_descriptor;
}
public SubAllAlarm getDefaultInstanceForType() {
return SubAllAlarm.getDefaultInstance();
}
public SubAllAlarm build() {
SubAllAlarm result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public SubAllAlarm buildPartial() {
SubAllAlarm result = new SubAllAlarm(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.subType_ = subType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof SubAllAlarm) {
return mergeFrom((SubAllAlarm)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(SubAllAlarm other) {
if (other == SubAllAlarm.getDefaultInstance()) return this;
if (other.hasSubType()) {
setSubType(other.getSubType());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSubType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
SubAllAlarm parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (SubAllAlarm) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
private SubType subType_ = SubType.unsub;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public boolean hasSubType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public SubType getSubType() {
return subType_;
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public Builder setSubType(SubType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
subType_ = value;
onChanged();
return this;
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public Builder clearSubType() {
bitField0_ = (bitField0_ & ~0x00000001);
subType_ = SubType.unsub;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.SubAllAlarm)
}
static {
defaultInstance = new SubAllAlarm(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.SubAllAlarm)
}
public interface SubIdMsgOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required int32 subId = 1;
/**
* required int32 subId = 1;
*/
boolean hasSubId();
/**
* required int32 subId = 1;
*/
int getSubId();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubIdMsg}
*/
public static final class SubIdMsg extends
com.google.protobuf.GeneratedMessage
implements SubIdMsgOrBuilder {
// Use SubIdMsg.newBuilder() to construct.
private SubIdMsg(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SubIdMsg(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SubIdMsg defaultInstance;
public static SubIdMsg getDefaultInstance() {
return defaultInstance;
}
public SubIdMsg getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubIdMsg(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
subId_ = 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.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubIdMsg_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubIdMsg_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubIdMsg.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SubIdMsg parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubIdMsg(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required int32 subId = 1;
public static final int SUBID_FIELD_NUMBER = 1;
private int subId_;
/**
* required int32 subId = 1;
*/
public boolean hasSubId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 subId = 1;
*/
public int getSubId() {
return subId_;
}
private void initFields() {
subId_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSubId()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, subId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, subId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static SubIdMsg parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubIdMsg parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubIdMsg parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubIdMsg parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubIdMsg parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubIdMsg parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static SubIdMsg parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static SubIdMsg parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static SubIdMsg parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubIdMsg parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(SubIdMsg prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubIdMsg}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements SubIdMsgOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubIdMsg_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubIdMsg_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubIdMsg.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.SubIdMsg.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
subId_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubIdMsg_descriptor;
}
public SubIdMsg getDefaultInstanceForType() {
return SubIdMsg.getDefaultInstance();
}
public SubIdMsg build() {
SubIdMsg result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public SubIdMsg buildPartial() {
SubIdMsg result = new SubIdMsg(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.subId_ = subId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof SubIdMsg) {
return mergeFrom((SubIdMsg)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(SubIdMsg other) {
if (other == SubIdMsg.getDefaultInstance()) return this;
if (other.hasSubId()) {
setSubId(other.getSubId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSubId()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
SubIdMsg parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (SubIdMsg) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required int32 subId = 1;
private int subId_ ;
/**
* required int32 subId = 1;
*/
public boolean hasSubId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 subId = 1;
*/
public int getSubId() {
return subId_;
}
/**
* required int32 subId = 1;
*/
public Builder setSubId(int value) {
bitField0_ |= 0x00000001;
subId_ = value;
onChanged();
return this;
}
/**
* required int32 subId = 1;
*/
public Builder clearSubId() {
bitField0_ = (bitField0_ & ~0x00000001);
subId_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.SubIdMsg)
}
static {
defaultInstance = new SubIdMsg(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.SubIdMsg)
}
public interface SDKAuthReqOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string appkey = 1;
/**
* required string appkey = 1;
*/
boolean hasAppkey();
/**
* required string appkey = 1;
*/
String getAppkey();
/**
* required string appkey = 1;
*/
com.google.protobuf.ByteString
getAppkeyBytes();
// required string signature = 2;
/**
* required string signature = 2;
*/
boolean hasSignature();
/**
* required string signature = 2;
*/
String getSignature();
/**
* required string signature = 2;
*/
com.google.protobuf.ByteString
getSignatureBytes();
// required int32 ackId = 3;
/**
* required int32 ackId = 3;
*/
boolean hasAckId();
/**
* required int32 ackId = 3;
*/
int getAckId();
// optional string token = 4;
/**
* optional string token = 4;
*/
boolean hasToken();
/**
* optional string token = 4;
*/
String getToken();
/**
* optional string token = 4;
*/
com.google.protobuf.ByteString
getTokenBytes();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SDKAuthReq}
*/
public static final class SDKAuthReq extends
com.google.protobuf.GeneratedMessage
implements SDKAuthReqOrBuilder {
// Use SDKAuthReq.newBuilder() to construct.
private SDKAuthReq(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SDKAuthReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SDKAuthReq defaultInstance;
public static SDKAuthReq getDefaultInstance() {
return defaultInstance;
}
public SDKAuthReq getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SDKAuthReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
appkey_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
signature_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
ackId_ = input.readInt32();
break;
}
case 34: {
bitField0_ |= 0x00000008;
token_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthReq_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SDKAuthReq.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SDKAuthReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SDKAuthReq(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string appkey = 1;
public static final int APPKEY_FIELD_NUMBER = 1;
private Object appkey_;
/**
* required string appkey = 1;
*/
public boolean hasAppkey() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string appkey = 1;
*/
public String getAppkey() {
Object ref = appkey_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
appkey_ = s;
}
return s;
}
}
/**
* required string appkey = 1;
*/
public com.google.protobuf.ByteString
getAppkeyBytes() {
Object ref = appkey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
appkey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string signature = 2;
public static final int SIGNATURE_FIELD_NUMBER = 2;
private Object signature_;
/**
* required string signature = 2;
*/
public boolean hasSignature() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string signature = 2;
*/
public String getSignature() {
Object ref = signature_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
signature_ = s;
}
return s;
}
}
/**
* required string signature = 2;
*/
public com.google.protobuf.ByteString
getSignatureBytes() {
Object ref = signature_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
signature_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 ackId = 3;
public static final int ACKID_FIELD_NUMBER = 3;
private int ackId_;
/**
* required int32 ackId = 3;
*/
public boolean hasAckId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 ackId = 3;
*/
public int getAckId() {
return ackId_;
}
// optional string token = 4;
public static final int TOKEN_FIELD_NUMBER = 4;
private Object token_;
/**
* optional string token = 4;
*/
public boolean hasToken() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string token = 4;
*/
public String getToken() {
Object ref = token_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
token_ = s;
}
return s;
}
}
/**
* optional string token = 4;
*/
public com.google.protobuf.ByteString
getTokenBytes() {
Object ref = token_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
token_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
appkey_ = "";
signature_ = "";
ackId_ = 0;
token_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasAppkey()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSignature()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasAckId()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getAppkeyBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getSignatureBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, ackId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getTokenBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getAppkeyBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getSignatureBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, ackId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getTokenBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static SDKAuthReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SDKAuthReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SDKAuthReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SDKAuthReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SDKAuthReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SDKAuthReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static SDKAuthReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static SDKAuthReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static SDKAuthReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SDKAuthReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(SDKAuthReq prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SDKAuthReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements SDKAuthReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthReq_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SDKAuthReq.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.SDKAuthReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
appkey_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
signature_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
ackId_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
token_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthReq_descriptor;
}
public SDKAuthReq getDefaultInstanceForType() {
return SDKAuthReq.getDefaultInstance();
}
public SDKAuthReq build() {
SDKAuthReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public SDKAuthReq buildPartial() {
SDKAuthReq result = new SDKAuthReq(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.appkey_ = appkey_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.signature_ = signature_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.ackId_ = ackId_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.token_ = token_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof SDKAuthReq) {
return mergeFrom((SDKAuthReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(SDKAuthReq other) {
if (other == SDKAuthReq.getDefaultInstance()) return this;
if (other.hasAppkey()) {
bitField0_ |= 0x00000001;
appkey_ = other.appkey_;
onChanged();
}
if (other.hasSignature()) {
bitField0_ |= 0x00000002;
signature_ = other.signature_;
onChanged();
}
if (other.hasAckId()) {
setAckId(other.getAckId());
}
if (other.hasToken()) {
bitField0_ |= 0x00000008;
token_ = other.token_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasAppkey()) {
return false;
}
if (!hasSignature()) {
return false;
}
if (!hasAckId()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
SDKAuthReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (SDKAuthReq) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string appkey = 1;
private Object appkey_ = "";
/**
* required string appkey = 1;
*/
public boolean hasAppkey() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string appkey = 1;
*/
public String getAppkey() {
Object ref = appkey_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
appkey_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string appkey = 1;
*/
public com.google.protobuf.ByteString
getAppkeyBytes() {
Object ref = appkey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
appkey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string appkey = 1;
*/
public Builder setAppkey(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
appkey_ = value;
onChanged();
return this;
}
/**
* required string appkey = 1;
*/
public Builder clearAppkey() {
bitField0_ = (bitField0_ & ~0x00000001);
appkey_ = getDefaultInstance().getAppkey();
onChanged();
return this;
}
/**
* required string appkey = 1;
*/
public Builder setAppkeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
appkey_ = value;
onChanged();
return this;
}
// required string signature = 2;
private Object signature_ = "";
/**
* required string signature = 2;
*/
public boolean hasSignature() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string signature = 2;
*/
public String getSignature() {
Object ref = signature_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
signature_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string signature = 2;
*/
public com.google.protobuf.ByteString
getSignatureBytes() {
Object ref = signature_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
signature_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string signature = 2;
*/
public Builder setSignature(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
signature_ = value;
onChanged();
return this;
}
/**
* required string signature = 2;
*/
public Builder clearSignature() {
bitField0_ = (bitField0_ & ~0x00000002);
signature_ = getDefaultInstance().getSignature();
onChanged();
return this;
}
/**
* required string signature = 2;
*/
public Builder setSignatureBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
signature_ = value;
onChanged();
return this;
}
// required int32 ackId = 3;
private int ackId_ ;
/**
* required int32 ackId = 3;
*/
public boolean hasAckId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 ackId = 3;
*/
public int getAckId() {
return ackId_;
}
/**
* required int32 ackId = 3;
*/
public Builder setAckId(int value) {
bitField0_ |= 0x00000004;
ackId_ = value;
onChanged();
return this;
}
/**
* required int32 ackId = 3;
*/
public Builder clearAckId() {
bitField0_ = (bitField0_ & ~0x00000004);
ackId_ = 0;
onChanged();
return this;
}
// optional string token = 4;
private Object token_ = "";
/**
* optional string token = 4;
*/
public boolean hasToken() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string token = 4;
*/
public String getToken() {
Object ref = token_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
token_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* optional string token = 4;
*/
public com.google.protobuf.ByteString
getTokenBytes() {
Object ref = token_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
token_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string token = 4;
*/
public Builder setToken(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
token_ = value;
onChanged();
return this;
}
/**
* optional string token = 4;
*/
public Builder clearToken() {
bitField0_ = (bitField0_ & ~0x00000008);
token_ = getDefaultInstance().getToken();
onChanged();
return this;
}
/**
* optional string token = 4;
*/
public Builder setTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
token_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.SDKAuthReq)
}
static {
defaultInstance = new SDKAuthReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.SDKAuthReq)
}
public interface SDKAuthResOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required int64 svrTime = 1;
/**
* required int64 svrTime = 1;
*/
boolean hasSvrTime();
/**
* required int64 svrTime = 1;
*/
long getSvrTime();
// optional string token = 2;
/**
* optional string token = 2;
*/
boolean hasToken();
/**
* optional string token = 2;
*/
String getToken();
/**
* optional string token = 2;
*/
com.google.protobuf.ByteString
getTokenBytes();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SDKAuthRes}
*/
public static final class SDKAuthRes extends
com.google.protobuf.GeneratedMessage
implements SDKAuthResOrBuilder {
// Use SDKAuthRes.newBuilder() to construct.
private SDKAuthRes(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SDKAuthRes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SDKAuthRes defaultInstance;
public static SDKAuthRes getDefaultInstance() {
return defaultInstance;
}
public SDKAuthRes getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SDKAuthRes(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
svrTime_ = input.readInt64();
break;
}
case 18: {
bitField0_ |= 0x00000002;
token_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthRes_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthRes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SDKAuthRes.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SDKAuthRes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SDKAuthRes(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required int64 svrTime = 1;
public static final int SVRTIME_FIELD_NUMBER = 1;
private long svrTime_;
/**
* required int64 svrTime = 1;
*/
public boolean hasSvrTime() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int64 svrTime = 1;
*/
public long getSvrTime() {
return svrTime_;
}
// optional string token = 2;
public static final int TOKEN_FIELD_NUMBER = 2;
private Object token_;
/**
* optional string token = 2;
*/
public boolean hasToken() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string token = 2;
*/
public String getToken() {
Object ref = token_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
token_ = s;
}
return s;
}
}
/**
* optional string token = 2;
*/
public com.google.protobuf.ByteString
getTokenBytes() {
Object ref = token_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
token_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
svrTime_ = 0L;
token_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSvrTime()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, svrTime_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getTokenBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, svrTime_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getTokenBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static SDKAuthRes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SDKAuthRes parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SDKAuthRes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SDKAuthRes parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SDKAuthRes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SDKAuthRes parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static SDKAuthRes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static SDKAuthRes parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static SDKAuthRes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SDKAuthRes parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(SDKAuthRes prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SDKAuthRes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements SDKAuthResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthRes_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthRes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SDKAuthRes.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.SDKAuthRes.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
svrTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
token_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthRes_descriptor;
}
public SDKAuthRes getDefaultInstanceForType() {
return SDKAuthRes.getDefaultInstance();
}
public SDKAuthRes build() {
SDKAuthRes result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public SDKAuthRes buildPartial() {
SDKAuthRes result = new SDKAuthRes(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.svrTime_ = svrTime_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.token_ = token_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof SDKAuthRes) {
return mergeFrom((SDKAuthRes)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(SDKAuthRes other) {
if (other == SDKAuthRes.getDefaultInstance()) return this;
if (other.hasSvrTime()) {
setSvrTime(other.getSvrTime());
}
if (other.hasToken()) {
bitField0_ |= 0x00000002;
token_ = other.token_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSvrTime()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
SDKAuthRes parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (SDKAuthRes) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required int64 svrTime = 1;
private long svrTime_ ;
/**
* required int64 svrTime = 1;
*/
public boolean hasSvrTime() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int64 svrTime = 1;
*/
public long getSvrTime() {
return svrTime_;
}
/**
* required int64 svrTime = 1;
*/
public Builder setSvrTime(long value) {
bitField0_ |= 0x00000001;
svrTime_ = value;
onChanged();
return this;
}
/**
* required int64 svrTime = 1;
*/
public Builder clearSvrTime() {
bitField0_ = (bitField0_ & ~0x00000001);
svrTime_ = 0L;
onChanged();
return this;
}
// optional string token = 2;
private Object token_ = "";
/**
* optional string token = 2;
*/
public boolean hasToken() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string token = 2;
*/
public String getToken() {
Object ref = token_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
token_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* optional string token = 2;
*/
public com.google.protobuf.ByteString
getTokenBytes() {
Object ref = token_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
token_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string token = 2;
*/
public Builder setToken(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
token_ = value;
onChanged();
return this;
}
/**
* optional string token = 2;
*/
public Builder clearToken() {
bitField0_ = (bitField0_ & ~0x00000002);
token_ = getDefaultInstance().getToken();
onChanged();
return this;
}
/**
* optional string token = 2;
*/
public Builder setTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
token_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.SDKAuthRes)
}
static {
defaultInstance = new SDKAuthRes(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.SDKAuthRes)
}
public interface AlertStrReqOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string alertJsonStr = 1;
/**
* required string alertJsonStr = 1;
*/
boolean hasAlertJsonStr();
/**
* required string alertJsonStr = 1;
*/
String getAlertJsonStr();
/**
* required string alertJsonStr = 1;
*/
com.google.protobuf.ByteString
getAlertJsonStrBytes();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.AlertStrReq}
*/
public static final class AlertStrReq extends
com.google.protobuf.GeneratedMessage
implements AlertStrReqOrBuilder {
// Use AlertStrReq.newBuilder() to construct.
private AlertStrReq(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private AlertStrReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final AlertStrReq defaultInstance;
public static AlertStrReq getDefaultInstance() {
return defaultInstance;
}
public AlertStrReq getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AlertStrReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
alertJsonStr_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AlertStrReq_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AlertStrReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
AlertStrReq.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public AlertStrReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AlertStrReq(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string alertJsonStr = 1;
public static final int ALERTJSONSTR_FIELD_NUMBER = 1;
private Object alertJsonStr_;
/**
* required string alertJsonStr = 1;
*/
public boolean hasAlertJsonStr() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string alertJsonStr = 1;
*/
public String getAlertJsonStr() {
Object ref = alertJsonStr_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
alertJsonStr_ = s;
}
return s;
}
}
/**
* required string alertJsonStr = 1;
*/
public com.google.protobuf.ByteString
getAlertJsonStrBytes() {
Object ref = alertJsonStr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
alertJsonStr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
alertJsonStr_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasAlertJsonStr()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getAlertJsonStrBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getAlertJsonStrBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static AlertStrReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static AlertStrReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static AlertStrReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static AlertStrReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static AlertStrReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static AlertStrReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static AlertStrReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static AlertStrReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static AlertStrReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static AlertStrReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(AlertStrReq prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.AlertStrReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements AlertStrReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AlertStrReq_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AlertStrReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
AlertStrReq.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.AlertStrReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
alertJsonStr_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AlertStrReq_descriptor;
}
public AlertStrReq getDefaultInstanceForType() {
return AlertStrReq.getDefaultInstance();
}
public AlertStrReq build() {
AlertStrReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public AlertStrReq buildPartial() {
AlertStrReq result = new AlertStrReq(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.alertJsonStr_ = alertJsonStr_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof AlertStrReq) {
return mergeFrom((AlertStrReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(AlertStrReq other) {
if (other == AlertStrReq.getDefaultInstance()) return this;
if (other.hasAlertJsonStr()) {
bitField0_ |= 0x00000001;
alertJsonStr_ = other.alertJsonStr_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasAlertJsonStr()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
AlertStrReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (AlertStrReq) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string alertJsonStr = 1;
private Object alertJsonStr_ = "";
/**
* required string alertJsonStr = 1;
*/
public boolean hasAlertJsonStr() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string alertJsonStr = 1;
*/
public String getAlertJsonStr() {
Object ref = alertJsonStr_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
alertJsonStr_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string alertJsonStr = 1;
*/
public com.google.protobuf.ByteString
getAlertJsonStrBytes() {
Object ref = alertJsonStr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
alertJsonStr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string alertJsonStr = 1;
*/
public Builder setAlertJsonStr(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
alertJsonStr_ = value;
onChanged();
return this;
}
/**
* required string alertJsonStr = 1;
*/
public Builder clearAlertJsonStr() {
bitField0_ = (bitField0_ & ~0x00000001);
alertJsonStr_ = getDefaultInstance().getAlertJsonStr();
onChanged();
return this;
}
/**
* required string alertJsonStr = 1;
*/
public Builder setAlertJsonStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
alertJsonStr_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.AlertStrReq)
}
static {
defaultInstance = new AlertStrReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.AlertStrReq)
}
public interface PointDetailOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string p = 1;
/**
* required string p = 1;
*
*
*point
*
*/
boolean hasP();
/**
* required string p = 1;
*
*
*point
*
*/
String getP();
/**
* required string p = 1;
*
*
*point
*
*/
com.google.protobuf.ByteString
getPBytes();
// required string d = 2;
/**
* required string d = 2;
*
*
*device
*
*/
boolean hasD();
/**
* required string d = 2;
*
*
*device
*
*/
String getD();
/**
* required string d = 2;
*
*
*device
*
*/
com.google.protobuf.ByteString
getDBytes();
// required string s = 3;
/**
* required string s = 3;
*
*
*site
*
*/
boolean hasS();
/**
* required string s = 3;
*
*
*site
*
*/
String getS();
/**
* required string s = 3;
*
*
*site
*
*/
com.google.protobuf.ByteString
getSBytes();
// required string v = 4;
/**
* required string v = 4;
*
*
*value
*
*/
boolean hasV();
/**
* required string v = 4;
*
*
*value
*
*/
String getV();
/**
* required string v = 4;
*
*
*value
*
*/
com.google.protobuf.ByteString
getVBytes();
// required int64 t = 5;
/**
* required int64 t = 5;
*
*
*timetstamp
*
*/
boolean hasT();
/**
* required int64 t = 5;
*
*
*timetstamp
*
*/
long getT();
// required string a = 6;
/**
* required string a = 6;
*
*
*attributes
*
*/
boolean hasA();
/**
* required string a = 6;
*
*
*attributes
*
*/
String getA();
/**
* required string a = 6;
*
*
*attributes
*
*/
com.google.protobuf.ByteString
getABytes();
// required string m = 7;
/**
* required string m = 7;
*
*
*domain
*
*/
boolean hasM();
/**
* required string m = 7;
*
*
*domain
*
*/
String getM();
/**
* required string m = 7;
*
*
*domain
*
*/
com.google.protobuf.ByteString
getMBytes();
// required string lcv = 8;
/**
* required string lcv = 8;
*
*
*last change value
*
*/
boolean hasLcv();
/**
* required string lcv = 8;
*
*
*last change value
*
*/
String getLcv();
/**
* required string lcv = 8;
*
*
*last change value
*
*/
com.google.protobuf.ByteString
getLcvBytes();
// required int64 lct = 9;
/**
* required int64 lct = 9;
*
*
*last change timestamp
*
*/
boolean hasLct();
/**
* required int64 lct = 9;
*
*
*last change timestamp
*
*/
long getLct();
// required string lv = 10;
/**
* required string lv = 10;
*
*
*last value
*
*/
boolean hasLv();
/**
* required string lv = 10;
*
*
*last value
*
*/
String getLv();
/**
* required string lv = 10;
*
*
*last value
*
*/
com.google.protobuf.ByteString
getLvBytes();
// required int64 lt = 11;
/**
* required int64 lt = 11;
*
*
*last timetstamp
*
*/
boolean hasLt();
/**
* required int64 lt = 11;
*
*
*last timetstamp
*
*/
long getLt();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.PointDetail}
*/
public static final class PointDetail extends
com.google.protobuf.GeneratedMessage
implements PointDetailOrBuilder {
// Use PointDetail.newBuilder() to construct.
private PointDetail(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private PointDetail(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final PointDetail defaultInstance;
public static PointDetail getDefaultInstance() {
return defaultInstance;
}
public PointDetail getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PointDetail(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
p_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
d_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
s_ = input.readBytes();
break;
}
case 34: {
bitField0_ |= 0x00000008;
v_ = input.readBytes();
break;
}
case 40: {
bitField0_ |= 0x00000010;
t_ = input.readInt64();
break;
}
case 50: {
bitField0_ |= 0x00000020;
a_ = input.readBytes();
break;
}
case 58: {
bitField0_ |= 0x00000040;
m_ = input.readBytes();
break;
}
case 66: {
bitField0_ |= 0x00000080;
lcv_ = input.readBytes();
break;
}
case 72: {
bitField0_ |= 0x00000100;
lct_ = input.readInt64();
break;
}
case 82: {
bitField0_ |= 0x00000200;
lv_ = input.readBytes();
break;
}
case 88: {
bitField0_ |= 0x00000400;
lt_ = 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.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_PointDetail_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_PointDetail_fieldAccessorTable
.ensureFieldAccessorsInitialized(
PointDetail.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public PointDetail parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PointDetail(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string p = 1;
public static final int P_FIELD_NUMBER = 1;
private Object p_;
/**
* required string p = 1;
*
*
*point
*
*/
public boolean hasP() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string p = 1;
*
*
*point
*
*/
public String getP() {
Object ref = p_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
p_ = s;
}
return s;
}
}
/**
* required string p = 1;
*
*
*point
*
*/
public com.google.protobuf.ByteString
getPBytes() {
Object ref = p_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
p_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string d = 2;
public static final int D_FIELD_NUMBER = 2;
private Object d_;
/**
* required string d = 2;
*
*
*device
*
*/
public boolean hasD() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string d = 2;
*
*
*device
*
*/
public String getD() {
Object ref = d_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
d_ = s;
}
return s;
}
}
/**
* required string d = 2;
*
*
*device
*
*/
public com.google.protobuf.ByteString
getDBytes() {
Object ref = d_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
d_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string s = 3;
public static final int S_FIELD_NUMBER = 3;
private Object s_;
/**
* required string s = 3;
*
*
*site
*
*/
public boolean hasS() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string s = 3;
*
*
*site
*
*/
public String getS() {
Object ref = s_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
s_ = s;
}
return s;
}
}
/**
* required string s = 3;
*
*
*site
*
*/
public com.google.protobuf.ByteString
getSBytes() {
Object ref = s_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
s_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string v = 4;
public static final int V_FIELD_NUMBER = 4;
private Object v_;
/**
* required string v = 4;
*
*
*value
*
*/
public boolean hasV() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required string v = 4;
*
*
*value
*
*/
public String getV() {
Object ref = v_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
v_ = s;
}
return s;
}
}
/**
* required string v = 4;
*
*
*value
*
*/
public com.google.protobuf.ByteString
getVBytes() {
Object ref = v_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
v_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int64 t = 5;
public static final int T_FIELD_NUMBER = 5;
private long t_;
/**
* required int64 t = 5;
*
*
*timetstamp
*
*/
public boolean hasT() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* required int64 t = 5;
*
*
*timetstamp
*
*/
public long getT() {
return t_;
}
// required string a = 6;
public static final int A_FIELD_NUMBER = 6;
private Object a_;
/**
* required string a = 6;
*
*
*attributes
*
*/
public boolean hasA() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* required string a = 6;
*
*
*attributes
*
*/
public String getA() {
Object ref = a_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
a_ = s;
}
return s;
}
}
/**
* required string a = 6;
*
*
*attributes
*
*/
public com.google.protobuf.ByteString
getABytes() {
Object ref = a_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
a_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string m = 7;
public static final int M_FIELD_NUMBER = 7;
private Object m_;
/**
* required string m = 7;
*
*
*domain
*
*/
public boolean hasM() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* required string m = 7;
*
*
*domain
*
*/
public String getM() {
Object ref = m_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
m_ = s;
}
return s;
}
}
/**
* required string m = 7;
*
*
*domain
*
*/
public com.google.protobuf.ByteString
getMBytes() {
Object ref = m_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
m_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string lcv = 8;
public static final int LCV_FIELD_NUMBER = 8;
private Object lcv_;
/**
* required string lcv = 8;
*
*
*last change value
*
*/
public boolean hasLcv() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* required string lcv = 8;
*
*
*last change value
*
*/
public String getLcv() {
Object ref = lcv_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
lcv_ = s;
}
return s;
}
}
/**
* required string lcv = 8;
*
*
*last change value
*
*/
public com.google.protobuf.ByteString
getLcvBytes() {
Object ref = lcv_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
lcv_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int64 lct = 9;
public static final int LCT_FIELD_NUMBER = 9;
private long lct_;
/**
* required int64 lct = 9;
*
*
*last change timestamp
*
*/
public boolean hasLct() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* required int64 lct = 9;
*
*
*last change timestamp
*
*/
public long getLct() {
return lct_;
}
// required string lv = 10;
public static final int LV_FIELD_NUMBER = 10;
private Object lv_;
/**
* required string lv = 10;
*
*
*last value
*
*/
public boolean hasLv() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* required string lv = 10;
*
*
*last value
*
*/
public String getLv() {
Object ref = lv_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
lv_ = s;
}
return s;
}
}
/**
* required string lv = 10;
*
*
*last value
*
*/
public com.google.protobuf.ByteString
getLvBytes() {
Object ref = lv_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
lv_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int64 lt = 11;
public static final int LT_FIELD_NUMBER = 11;
private long lt_;
/**
* required int64 lt = 11;
*
*
*last timetstamp
*
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* required int64 lt = 11;
*
*
*last timetstamp
*
*/
public long getLt() {
return lt_;
}
private void initFields() {
p_ = "";
d_ = "";
s_ = "";
v_ = "";
t_ = 0L;
a_ = "";
m_ = "";
lcv_ = "";
lct_ = 0L;
lv_ = "";
lt_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasP()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasD()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasS()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasV()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasT()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasA()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasM()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLcv()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLct()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLv()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLt()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getPBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getDBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getSBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getVBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(5, t_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBytes(6, getABytes());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBytes(7, getMBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBytes(8, getLcvBytes());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt64(9, lct_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeBytes(10, getLvBytes());
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeInt64(11, lt_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getPBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getDBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getSBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getVBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, t_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, getABytes());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, getMBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, getLcvBytes());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, lct_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, getLvBytes());
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, lt_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static PointDetail parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static PointDetail parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static PointDetail parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static PointDetail parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static PointDetail parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static PointDetail parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static PointDetail parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static PointDetail parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static PointDetail parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static PointDetail parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(PointDetail prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.PointDetail}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements PointDetailOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_PointDetail_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_PointDetail_fieldAccessorTable
.ensureFieldAccessorsInitialized(
PointDetail.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.PointDetail.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
p_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
d_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
s_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
v_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
t_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
a_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
m_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
lcv_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
lct_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
lv_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
lt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_PointDetail_descriptor;
}
public PointDetail getDefaultInstanceForType() {
return PointDetail.getDefaultInstance();
}
public PointDetail build() {
PointDetail result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public PointDetail buildPartial() {
PointDetail result = new PointDetail(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.p_ = p_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.d_ = d_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.s_ = s_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.v_ = v_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.t_ = t_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.a_ = a_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.m_ = m_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.lcv_ = lcv_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.lct_ = lct_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.lv_ = lv_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.lt_ = lt_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof PointDetail) {
return mergeFrom((PointDetail)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(PointDetail other) {
if (other == PointDetail.getDefaultInstance()) return this;
if (other.hasP()) {
bitField0_ |= 0x00000001;
p_ = other.p_;
onChanged();
}
if (other.hasD()) {
bitField0_ |= 0x00000002;
d_ = other.d_;
onChanged();
}
if (other.hasS()) {
bitField0_ |= 0x00000004;
s_ = other.s_;
onChanged();
}
if (other.hasV()) {
bitField0_ |= 0x00000008;
v_ = other.v_;
onChanged();
}
if (other.hasT()) {
setT(other.getT());
}
if (other.hasA()) {
bitField0_ |= 0x00000020;
a_ = other.a_;
onChanged();
}
if (other.hasM()) {
bitField0_ |= 0x00000040;
m_ = other.m_;
onChanged();
}
if (other.hasLcv()) {
bitField0_ |= 0x00000080;
lcv_ = other.lcv_;
onChanged();
}
if (other.hasLct()) {
setLct(other.getLct());
}
if (other.hasLv()) {
bitField0_ |= 0x00000200;
lv_ = other.lv_;
onChanged();
}
if (other.hasLt()) {
setLt(other.getLt());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasP()) {
return false;
}
if (!hasD()) {
return false;
}
if (!hasS()) {
return false;
}
if (!hasV()) {
return false;
}
if (!hasT()) {
return false;
}
if (!hasA()) {
return false;
}
if (!hasM()) {
return false;
}
if (!hasLcv()) {
return false;
}
if (!hasLct()) {
return false;
}
if (!hasLv()) {
return false;
}
if (!hasLt()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
PointDetail parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (PointDetail) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string p = 1;
private Object p_ = "";
/**
* required string p = 1;
*
*
*point
*
*/
public boolean hasP() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string p = 1;
*
*
*point
*
*/
public String getP() {
Object ref = p_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
p_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string p = 1;
*
*
*point
*
*/
public com.google.protobuf.ByteString
getPBytes() {
Object ref = p_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
p_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string p = 1;
*
*
*point
*
*/
public Builder setP(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
p_ = value;
onChanged();
return this;
}
/**
* required string p = 1;
*
*
*point
*
*/
public Builder clearP() {
bitField0_ = (bitField0_ & ~0x00000001);
p_ = getDefaultInstance().getP();
onChanged();
return this;
}
/**
* required string p = 1;
*
*
*point
*
*/
public Builder setPBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
p_ = value;
onChanged();
return this;
}
// required string d = 2;
private Object d_ = "";
/**
* required string d = 2;
*
*
*device
*
*/
public boolean hasD() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string d = 2;
*
*
*device
*
*/
public String getD() {
Object ref = d_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
d_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string d = 2;
*
*
*device
*
*/
public com.google.protobuf.ByteString
getDBytes() {
Object ref = d_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
d_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string d = 2;
*
*
*device
*
*/
public Builder setD(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
d_ = value;
onChanged();
return this;
}
/**
* required string d = 2;
*
*
*device
*
*/
public Builder clearD() {
bitField0_ = (bitField0_ & ~0x00000002);
d_ = getDefaultInstance().getD();
onChanged();
return this;
}
/**
* required string d = 2;
*
*
*device
*
*/
public Builder setDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
d_ = value;
onChanged();
return this;
}
// required string s = 3;
private Object s_ = "";
/**
* required string s = 3;
*
*
*site
*
*/
public boolean hasS() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string s = 3;
*
*
*site
*
*/
public String getS() {
Object ref = s_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
s_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string s = 3;
*
*
*site
*
*/
public com.google.protobuf.ByteString
getSBytes() {
Object ref = s_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
s_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string s = 3;
*
*
*site
*
*/
public Builder setS(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
s_ = value;
onChanged();
return this;
}
/**
* required string s = 3;
*
*
*site
*
*/
public Builder clearS() {
bitField0_ = (bitField0_ & ~0x00000004);
s_ = getDefaultInstance().getS();
onChanged();
return this;
}
/**
* required string s = 3;
*
*
*site
*
*/
public Builder setSBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
s_ = value;
onChanged();
return this;
}
// required string v = 4;
private Object v_ = "";
/**
* required string v = 4;
*
*
*value
*
*/
public boolean hasV() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required string v = 4;
*
*
*value
*
*/
public String getV() {
Object ref = v_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
v_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string v = 4;
*
*
*value
*
*/
public com.google.protobuf.ByteString
getVBytes() {
Object ref = v_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
v_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string v = 4;
*
*
*value
*
*/
public Builder setV(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
v_ = value;
onChanged();
return this;
}
/**
* required string v = 4;
*
*
*value
*
*/
public Builder clearV() {
bitField0_ = (bitField0_ & ~0x00000008);
v_ = getDefaultInstance().getV();
onChanged();
return this;
}
/**
* required string v = 4;
*
*
*value
*
*/
public Builder setVBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
v_ = value;
onChanged();
return this;
}
// required int64 t = 5;
private long t_ ;
/**
* required int64 t = 5;
*
*
*timetstamp
*
*/
public boolean hasT() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* required int64 t = 5;
*
*
*timetstamp
*
*/
public long getT() {
return t_;
}
/**
* required int64 t = 5;
*
*
*timetstamp
*
*/
public Builder setT(long value) {
bitField0_ |= 0x00000010;
t_ = value;
onChanged();
return this;
}
/**
* required int64 t = 5;
*
*
*timetstamp
*
*/
public Builder clearT() {
bitField0_ = (bitField0_ & ~0x00000010);
t_ = 0L;
onChanged();
return this;
}
// required string a = 6;
private Object a_ = "";
/**
* required string a = 6;
*
*
*attributes
*
*/
public boolean hasA() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* required string a = 6;
*
*
*attributes
*
*/
public String getA() {
Object ref = a_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
a_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string a = 6;
*
*
*attributes
*
*/
public com.google.protobuf.ByteString
getABytes() {
Object ref = a_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
a_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string a = 6;
*
*
*attributes
*
*/
public Builder setA(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
a_ = value;
onChanged();
return this;
}
/**
* required string a = 6;
*
*
*attributes
*
*/
public Builder clearA() {
bitField0_ = (bitField0_ & ~0x00000020);
a_ = getDefaultInstance().getA();
onChanged();
return this;
}
/**
* required string a = 6;
*
*
*attributes
*
*/
public Builder setABytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
a_ = value;
onChanged();
return this;
}
// required string m = 7;
private Object m_ = "";
/**
* required string m = 7;
*
*
*domain
*
*/
public boolean hasM() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* required string m = 7;
*
*
*domain
*
*/
public String getM() {
Object ref = m_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
m_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string m = 7;
*
*
*domain
*
*/
public com.google.protobuf.ByteString
getMBytes() {
Object ref = m_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
m_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string m = 7;
*
*
*domain
*
*/
public Builder setM(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
m_ = value;
onChanged();
return this;
}
/**
* required string m = 7;
*
*
*domain
*
*/
public Builder clearM() {
bitField0_ = (bitField0_ & ~0x00000040);
m_ = getDefaultInstance().getM();
onChanged();
return this;
}
/**
* required string m = 7;
*
*
*domain
*
*/
public Builder setMBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
m_ = value;
onChanged();
return this;
}
// required string lcv = 8;
private Object lcv_ = "";
/**
* required string lcv = 8;
*
*
*last change value
*
*/
public boolean hasLcv() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* required string lcv = 8;
*
*
*last change value
*
*/
public String getLcv() {
Object ref = lcv_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
lcv_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string lcv = 8;
*
*
*last change value
*
*/
public com.google.protobuf.ByteString
getLcvBytes() {
Object ref = lcv_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
lcv_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string lcv = 8;
*
*
*last change value
*
*/
public Builder setLcv(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
lcv_ = value;
onChanged();
return this;
}
/**
* required string lcv = 8;
*
*
*last change value
*
*/
public Builder clearLcv() {
bitField0_ = (bitField0_ & ~0x00000080);
lcv_ = getDefaultInstance().getLcv();
onChanged();
return this;
}
/**
* required string lcv = 8;
*
*
*last change value
*
*/
public Builder setLcvBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
lcv_ = value;
onChanged();
return this;
}
// required int64 lct = 9;
private long lct_ ;
/**
* required int64 lct = 9;
*
*
*last change timestamp
*
*/
public boolean hasLct() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* required int64 lct = 9;
*
*
*last change timestamp
*
*/
public long getLct() {
return lct_;
}
/**
* required int64 lct = 9;
*
*
*last change timestamp
*
*/
public Builder setLct(long value) {
bitField0_ |= 0x00000100;
lct_ = value;
onChanged();
return this;
}
/**
* required int64 lct = 9;
*
*
*last change timestamp
*
*/
public Builder clearLct() {
bitField0_ = (bitField0_ & ~0x00000100);
lct_ = 0L;
onChanged();
return this;
}
// required string lv = 10;
private Object lv_ = "";
/**
* required string lv = 10;
*
*
*last value
*
*/
public boolean hasLv() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* required string lv = 10;
*
*
*last value
*
*/
public String getLv() {
Object ref = lv_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
lv_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string lv = 10;
*
*
*last value
*
*/
public com.google.protobuf.ByteString
getLvBytes() {
Object ref = lv_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
lv_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string lv = 10;
*
*
*last value
*
*/
public Builder setLv(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
lv_ = value;
onChanged();
return this;
}
/**
* required string lv = 10;
*
*
*last value
*
*/
public Builder clearLv() {
bitField0_ = (bitField0_ & ~0x00000200);
lv_ = getDefaultInstance().getLv();
onChanged();
return this;
}
/**
* required string lv = 10;
*
*
*last value
*
*/
public Builder setLvBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
lv_ = value;
onChanged();
return this;
}
// required int64 lt = 11;
private long lt_ ;
/**
* required int64 lt = 11;
*
*
*last timetstamp
*
*/
public boolean hasLt() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* required int64 lt = 11;
*
*
*last timetstamp
*
*/
public long getLt() {
return lt_;
}
/**
* required int64 lt = 11;
*
*
*last timetstamp
*
*/
public Builder setLt(long value) {
bitField0_ |= 0x00000400;
lt_ = value;
onChanged();
return this;
}
/**
* required int64 lt = 11;
*
*
*last timetstamp
*
*/
public Builder clearLt() {
bitField0_ = (bitField0_ & ~0x00000400);
lt_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.PointDetail)
}
static {
defaultInstance = new PointDetail(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.PointDetail)
}
public interface SubEventCustomerOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
boolean hasSubType();
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
SubType getSubType();
// repeated string customerids = 2;
/**
* repeated string customerids = 2;
*/
java.util.List
getCustomeridsList();
/**
* repeated string customerids = 2;
*/
int getCustomeridsCount();
/**
* repeated string customerids = 2;
*/
String getCustomerids(int index);
/**
* repeated string customerids = 2;
*/
com.google.protobuf.ByteString
getCustomeridsBytes(int index);
// repeated string siteids = 3;
/**
* repeated string siteids = 3;
*/
java.util.List
getSiteidsList();
/**
* repeated string siteids = 3;
*/
int getSiteidsCount();
/**
* repeated string siteids = 3;
*/
String getSiteids(int index);
/**
* repeated string siteids = 3;
*/
com.google.protobuf.ByteString
getSiteidsBytes(int index);
// repeated string codes = 4;
/**
* repeated string codes = 4;
*/
java.util.List
getCodesList();
/**
* repeated string codes = 4;
*/
int getCodesCount();
/**
* repeated string codes = 4;
*/
String getCodes(int index);
/**
* repeated string codes = 4;
*/
com.google.protobuf.ByteString
getCodesBytes(int index);
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubEventCustomer}
*/
public static final class SubEventCustomer extends
com.google.protobuf.GeneratedMessage
implements SubEventCustomerOrBuilder {
// Use SubEventCustomer.newBuilder() to construct.
private SubEventCustomer(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SubEventCustomer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SubEventCustomer defaultInstance;
public static SubEventCustomer getDefaultInstance() {
return defaultInstance;
}
public SubEventCustomer getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubEventCustomer(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
SubType value = SubType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
subType_ = value;
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
customerids_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
customerids_.add(input.readBytes());
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
siteids_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
siteids_.add(input.readBytes());
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
codes_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
codes_.add(input.readBytes());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
customerids_ = new com.google.protobuf.UnmodifiableLazyStringList(customerids_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
siteids_ = new com.google.protobuf.UnmodifiableLazyStringList(siteids_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
codes_ = new com.google.protobuf.UnmodifiableLazyStringList(codes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubEventCustomer_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubEventCustomer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubEventCustomer.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SubEventCustomer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubEventCustomer(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
public static final int SUBTYPE_FIELD_NUMBER = 1;
private SubType subType_;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public boolean hasSubType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public SubType getSubType() {
return subType_;
}
// repeated string customerids = 2;
public static final int CUSTOMERIDS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList customerids_;
/**
* repeated string customerids = 2;
*/
public java.util.List
getCustomeridsList() {
return customerids_;
}
/**
* repeated string customerids = 2;
*/
public int getCustomeridsCount() {
return customerids_.size();
}
/**
* repeated string customerids = 2;
*/
public String getCustomerids(int index) {
return customerids_.get(index);
}
/**
* repeated string customerids = 2;
*/
public com.google.protobuf.ByteString
getCustomeridsBytes(int index) {
return customerids_.getByteString(index);
}
// repeated string siteids = 3;
public static final int SITEIDS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList siteids_;
/**
* repeated string siteids = 3;
*/
public java.util.List
getSiteidsList() {
return siteids_;
}
/**
* repeated string siteids = 3;
*/
public int getSiteidsCount() {
return siteids_.size();
}
/**
* repeated string siteids = 3;
*/
public String getSiteids(int index) {
return siteids_.get(index);
}
/**
* repeated string siteids = 3;
*/
public com.google.protobuf.ByteString
getSiteidsBytes(int index) {
return siteids_.getByteString(index);
}
// repeated string codes = 4;
public static final int CODES_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList codes_;
/**
* repeated string codes = 4;
*/
public java.util.List
getCodesList() {
return codes_;
}
/**
* repeated string codes = 4;
*/
public int getCodesCount() {
return codes_.size();
}
/**
* repeated string codes = 4;
*/
public String getCodes(int index) {
return codes_.get(index);
}
/**
* repeated string codes = 4;
*/
public com.google.protobuf.ByteString
getCodesBytes(int index) {
return codes_.getByteString(index);
}
private void initFields() {
subType_ = SubType.unsub;
customerids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
siteids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
codes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSubType()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, subType_.getNumber());
}
for (int i = 0; i < customerids_.size(); i++) {
output.writeBytes(2, customerids_.getByteString(i));
}
for (int i = 0; i < siteids_.size(); i++) {
output.writeBytes(3, siteids_.getByteString(i));
}
for (int i = 0; i < codes_.size(); i++) {
output.writeBytes(4, codes_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, subType_.getNumber());
}
{
int dataSize = 0;
for (int i = 0; i < customerids_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(customerids_.getByteString(i));
}
size += dataSize;
size += 1 * getCustomeridsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < siteids_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(siteids_.getByteString(i));
}
size += dataSize;
size += 1 * getSiteidsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < codes_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(codes_.getByteString(i));
}
size += dataSize;
size += 1 * getCodesList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static SubEventCustomer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubEventCustomer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubEventCustomer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubEventCustomer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubEventCustomer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubEventCustomer parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static SubEventCustomer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static SubEventCustomer parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static SubEventCustomer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubEventCustomer parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(SubEventCustomer prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubEventCustomer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements SubEventCustomerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubEventCustomer_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubEventCustomer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubEventCustomer.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.SubEventCustomer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
subType_ = SubType.unsub;
bitField0_ = (bitField0_ & ~0x00000001);
customerids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
siteids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
codes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubEventCustomer_descriptor;
}
public SubEventCustomer getDefaultInstanceForType() {
return SubEventCustomer.getDefaultInstance();
}
public SubEventCustomer build() {
SubEventCustomer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public SubEventCustomer buildPartial() {
SubEventCustomer result = new SubEventCustomer(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.subType_ = subType_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
customerids_ = new com.google.protobuf.UnmodifiableLazyStringList(
customerids_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.customerids_ = customerids_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
siteids_ = new com.google.protobuf.UnmodifiableLazyStringList(
siteids_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.siteids_ = siteids_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
codes_ = new com.google.protobuf.UnmodifiableLazyStringList(
codes_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.codes_ = codes_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof SubEventCustomer) {
return mergeFrom((SubEventCustomer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(SubEventCustomer other) {
if (other == SubEventCustomer.getDefaultInstance()) return this;
if (other.hasSubType()) {
setSubType(other.getSubType());
}
if (!other.customerids_.isEmpty()) {
if (customerids_.isEmpty()) {
customerids_ = other.customerids_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCustomeridsIsMutable();
customerids_.addAll(other.customerids_);
}
onChanged();
}
if (!other.siteids_.isEmpty()) {
if (siteids_.isEmpty()) {
siteids_ = other.siteids_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSiteidsIsMutable();
siteids_.addAll(other.siteids_);
}
onChanged();
}
if (!other.codes_.isEmpty()) {
if (codes_.isEmpty()) {
codes_ = other.codes_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureCodesIsMutable();
codes_.addAll(other.codes_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSubType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
SubEventCustomer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (SubEventCustomer) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
private SubType subType_ = SubType.unsub;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public boolean hasSubType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public SubType getSubType() {
return subType_;
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public Builder setSubType(SubType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
subType_ = value;
onChanged();
return this;
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public Builder clearSubType() {
bitField0_ = (bitField0_ & ~0x00000001);
subType_ = SubType.unsub;
onChanged();
return this;
}
// repeated string customerids = 2;
private com.google.protobuf.LazyStringList customerids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureCustomeridsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
customerids_ = new com.google.protobuf.LazyStringArrayList(customerids_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated string customerids = 2;
*/
public java.util.List
getCustomeridsList() {
return java.util.Collections.unmodifiableList(customerids_);
}
/**
* repeated string customerids = 2;
*/
public int getCustomeridsCount() {
return customerids_.size();
}
/**
* repeated string customerids = 2;
*/
public String getCustomerids(int index) {
return customerids_.get(index);
}
/**
* repeated string customerids = 2;
*/
public com.google.protobuf.ByteString
getCustomeridsBytes(int index) {
return customerids_.getByteString(index);
}
/**
* repeated string customerids = 2;
*/
public Builder setCustomerids(
int index, String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomeridsIsMutable();
customerids_.set(index, value);
onChanged();
return this;
}
/**
* repeated string customerids = 2;
*/
public Builder addCustomerids(
String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomeridsIsMutable();
customerids_.add(value);
onChanged();
return this;
}
/**
* repeated string customerids = 2;
*/
public Builder addAllCustomerids(
Iterable values) {
ensureCustomeridsIsMutable();
super.addAll(values, customerids_);
onChanged();
return this;
}
/**
* repeated string customerids = 2;
*/
public Builder clearCustomerids() {
customerids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* repeated string customerids = 2;
*/
public Builder addCustomeridsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomeridsIsMutable();
customerids_.add(value);
onChanged();
return this;
}
// repeated string siteids = 3;
private com.google.protobuf.LazyStringList siteids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSiteidsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
siteids_ = new com.google.protobuf.LazyStringArrayList(siteids_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string siteids = 3;
*/
public java.util.List
getSiteidsList() {
return java.util.Collections.unmodifiableList(siteids_);
}
/**
* repeated string siteids = 3;
*/
public int getSiteidsCount() {
return siteids_.size();
}
/**
* repeated string siteids = 3;
*/
public String getSiteids(int index) {
return siteids_.get(index);
}
/**
* repeated string siteids = 3;
*/
public com.google.protobuf.ByteString
getSiteidsBytes(int index) {
return siteids_.getByteString(index);
}
/**
* repeated string siteids = 3;
*/
public Builder setSiteids(
int index, String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSiteidsIsMutable();
siteids_.set(index, value);
onChanged();
return this;
}
/**
* repeated string siteids = 3;
*/
public Builder addSiteids(
String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSiteidsIsMutable();
siteids_.add(value);
onChanged();
return this;
}
/**
* repeated string siteids = 3;
*/
public Builder addAllSiteids(
Iterable values) {
ensureSiteidsIsMutable();
super.addAll(values, siteids_);
onChanged();
return this;
}
/**
* repeated string siteids = 3;
*/
public Builder clearSiteids() {
siteids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string siteids = 3;
*/
public Builder addSiteidsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureSiteidsIsMutable();
siteids_.add(value);
onChanged();
return this;
}
// repeated string codes = 4;
private com.google.protobuf.LazyStringList codes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureCodesIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
codes_ = new com.google.protobuf.LazyStringArrayList(codes_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated string codes = 4;
*/
public java.util.List
getCodesList() {
return java.util.Collections.unmodifiableList(codes_);
}
/**
* repeated string codes = 4;
*/
public int getCodesCount() {
return codes_.size();
}
/**
* repeated string codes = 4;
*/
public String getCodes(int index) {
return codes_.get(index);
}
/**
* repeated string codes = 4;
*/
public com.google.protobuf.ByteString
getCodesBytes(int index) {
return codes_.getByteString(index);
}
/**
* repeated string codes = 4;
*/
public Builder setCodes(
int index, String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCodesIsMutable();
codes_.set(index, value);
onChanged();
return this;
}
/**
* repeated string codes = 4;
*/
public Builder addCodes(
String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCodesIsMutable();
codes_.add(value);
onChanged();
return this;
}
/**
* repeated string codes = 4;
*/
public Builder addAllCodes(
Iterable values) {
ensureCodesIsMutable();
super.addAll(values, codes_);
onChanged();
return this;
}
/**
* repeated string codes = 4;
*/
public Builder clearCodes() {
codes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* repeated string codes = 4;
*/
public Builder addCodesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureCodesIsMutable();
codes_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.SubEventCustomer)
}
static {
defaultInstance = new SubEventCustomer(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.SubEventCustomer)
}
public interface SubEventV2CustomerOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
boolean hasSubType();
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
SubType getSubType();
// repeated string customerids = 2;
/**
* repeated string customerids = 2;
*/
java.util.List
getCustomeridsList();
/**
* repeated string customerids = 2;
*/
int getCustomeridsCount();
/**
* repeated string customerids = 2;
*/
String getCustomerids(int index);
/**
* repeated string customerids = 2;
*/
com.google.protobuf.ByteString
getCustomeridsBytes(int index);
// repeated string siteids = 3;
/**
* repeated string siteids = 3;
*/
java.util.List
getSiteidsList();
/**
* repeated string siteids = 3;
*/
int getSiteidsCount();
/**
* repeated string siteids = 3;
*/
String getSiteids(int index);
/**
* repeated string siteids = 3;
*/
com.google.protobuf.ByteString
getSiteidsBytes(int index);
// repeated string codes = 4;
/**
* repeated string codes = 4;
*/
java.util.List
getCodesList();
/**
* repeated string codes = 4;
*/
int getCodesCount();
/**
* repeated string codes = 4;
*/
String getCodes(int index);
/**
* repeated string codes = 4;
*/
com.google.protobuf.ByteString
getCodesBytes(int index);
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubEventV2Customer}
*/
public static final class SubEventV2Customer extends
com.google.protobuf.GeneratedMessage
implements SubEventV2CustomerOrBuilder {
// Use SubEventV2Customer.newBuilder() to construct.
private SubEventV2Customer(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SubEventV2Customer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SubEventV2Customer defaultInstance;
public static SubEventV2Customer getDefaultInstance() {
return defaultInstance;
}
public SubEventV2Customer getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubEventV2Customer(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
SubType value = SubType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
subType_ = value;
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
customerids_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
customerids_.add(input.readBytes());
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
siteids_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
siteids_.add(input.readBytes());
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
codes_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
codes_.add(input.readBytes());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
customerids_ = new com.google.protobuf.UnmodifiableLazyStringList(customerids_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
siteids_ = new com.google.protobuf.UnmodifiableLazyStringList(siteids_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
codes_ = new com.google.protobuf.UnmodifiableLazyStringList(codes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubEventV2Customer_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubEventV2Customer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubEventV2Customer.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SubEventV2Customer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubEventV2Customer(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
public static final int SUBTYPE_FIELD_NUMBER = 1;
private SubType subType_;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public boolean hasSubType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public SubType getSubType() {
return subType_;
}
// repeated string customerids = 2;
public static final int CUSTOMERIDS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList customerids_;
/**
* repeated string customerids = 2;
*/
public java.util.List
getCustomeridsList() {
return customerids_;
}
/**
* repeated string customerids = 2;
*/
public int getCustomeridsCount() {
return customerids_.size();
}
/**
* repeated string customerids = 2;
*/
public String getCustomerids(int index) {
return customerids_.get(index);
}
/**
* repeated string customerids = 2;
*/
public com.google.protobuf.ByteString
getCustomeridsBytes(int index) {
return customerids_.getByteString(index);
}
// repeated string siteids = 3;
public static final int SITEIDS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList siteids_;
/**
* repeated string siteids = 3;
*/
public java.util.List
getSiteidsList() {
return siteids_;
}
/**
* repeated string siteids = 3;
*/
public int getSiteidsCount() {
return siteids_.size();
}
/**
* repeated string siteids = 3;
*/
public String getSiteids(int index) {
return siteids_.get(index);
}
/**
* repeated string siteids = 3;
*/
public com.google.protobuf.ByteString
getSiteidsBytes(int index) {
return siteids_.getByteString(index);
}
// repeated string codes = 4;
public static final int CODES_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList codes_;
/**
* repeated string codes = 4;
*/
public java.util.List
getCodesList() {
return codes_;
}
/**
* repeated string codes = 4;
*/
public int getCodesCount() {
return codes_.size();
}
/**
* repeated string codes = 4;
*/
public String getCodes(int index) {
return codes_.get(index);
}
/**
* repeated string codes = 4;
*/
public com.google.protobuf.ByteString
getCodesBytes(int index) {
return codes_.getByteString(index);
}
private void initFields() {
subType_ = SubType.unsub;
customerids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
siteids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
codes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSubType()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, subType_.getNumber());
}
for (int i = 0; i < customerids_.size(); i++) {
output.writeBytes(2, customerids_.getByteString(i));
}
for (int i = 0; i < siteids_.size(); i++) {
output.writeBytes(3, siteids_.getByteString(i));
}
for (int i = 0; i < codes_.size(); i++) {
output.writeBytes(4, codes_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, subType_.getNumber());
}
{
int dataSize = 0;
for (int i = 0; i < customerids_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(customerids_.getByteString(i));
}
size += dataSize;
size += 1 * getCustomeridsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < siteids_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(siteids_.getByteString(i));
}
size += dataSize;
size += 1 * getSiteidsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < codes_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(codes_.getByteString(i));
}
size += dataSize;
size += 1 * getCodesList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static SubEventV2Customer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubEventV2Customer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubEventV2Customer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubEventV2Customer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubEventV2Customer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubEventV2Customer parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static SubEventV2Customer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static SubEventV2Customer parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static SubEventV2Customer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubEventV2Customer parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(SubEventV2Customer prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubEventV2Customer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements SubEventV2CustomerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubEventV2Customer_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubEventV2Customer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubEventV2Customer.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.SubEventV2Customer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
subType_ = SubType.unsub;
bitField0_ = (bitField0_ & ~0x00000001);
customerids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
siteids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
codes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubEventV2Customer_descriptor;
}
public SubEventV2Customer getDefaultInstanceForType() {
return SubEventV2Customer.getDefaultInstance();
}
public SubEventV2Customer build() {
SubEventV2Customer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public SubEventV2Customer buildPartial() {
SubEventV2Customer result = new SubEventV2Customer(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.subType_ = subType_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
customerids_ = new com.google.protobuf.UnmodifiableLazyStringList(
customerids_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.customerids_ = customerids_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
siteids_ = new com.google.protobuf.UnmodifiableLazyStringList(
siteids_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.siteids_ = siteids_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
codes_ = new com.google.protobuf.UnmodifiableLazyStringList(
codes_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.codes_ = codes_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof SubEventV2Customer) {
return mergeFrom((SubEventV2Customer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(SubEventV2Customer other) {
if (other == SubEventV2Customer.getDefaultInstance()) return this;
if (other.hasSubType()) {
setSubType(other.getSubType());
}
if (!other.customerids_.isEmpty()) {
if (customerids_.isEmpty()) {
customerids_ = other.customerids_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCustomeridsIsMutable();
customerids_.addAll(other.customerids_);
}
onChanged();
}
if (!other.siteids_.isEmpty()) {
if (siteids_.isEmpty()) {
siteids_ = other.siteids_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSiteidsIsMutable();
siteids_.addAll(other.siteids_);
}
onChanged();
}
if (!other.codes_.isEmpty()) {
if (codes_.isEmpty()) {
codes_ = other.codes_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureCodesIsMutable();
codes_.addAll(other.codes_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSubType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
SubEventV2Customer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (SubEventV2Customer) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
private SubType subType_ = SubType.unsub;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public boolean hasSubType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public SubType getSubType() {
return subType_;
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public Builder setSubType(SubType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
subType_ = value;
onChanged();
return this;
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public Builder clearSubType() {
bitField0_ = (bitField0_ & ~0x00000001);
subType_ = SubType.unsub;
onChanged();
return this;
}
// repeated string customerids = 2;
private com.google.protobuf.LazyStringList customerids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureCustomeridsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
customerids_ = new com.google.protobuf.LazyStringArrayList(customerids_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated string customerids = 2;
*/
public java.util.List
getCustomeridsList() {
return java.util.Collections.unmodifiableList(customerids_);
}
/**
* repeated string customerids = 2;
*/
public int getCustomeridsCount() {
return customerids_.size();
}
/**
* repeated string customerids = 2;
*/
public String getCustomerids(int index) {
return customerids_.get(index);
}
/**
* repeated string customerids = 2;
*/
public com.google.protobuf.ByteString
getCustomeridsBytes(int index) {
return customerids_.getByteString(index);
}
/**
* repeated string customerids = 2;
*/
public Builder setCustomerids(
int index, String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomeridsIsMutable();
customerids_.set(index, value);
onChanged();
return this;
}
/**
* repeated string customerids = 2;
*/
public Builder addCustomerids(
String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomeridsIsMutable();
customerids_.add(value);
onChanged();
return this;
}
/**
* repeated string customerids = 2;
*/
public Builder addAllCustomerids(
Iterable values) {
ensureCustomeridsIsMutable();
super.addAll(values, customerids_);
onChanged();
return this;
}
/**
* repeated string customerids = 2;
*/
public Builder clearCustomerids() {
customerids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* repeated string customerids = 2;
*/
public Builder addCustomeridsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomeridsIsMutable();
customerids_.add(value);
onChanged();
return this;
}
// repeated string siteids = 3;
private com.google.protobuf.LazyStringList siteids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSiteidsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
siteids_ = new com.google.protobuf.LazyStringArrayList(siteids_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string siteids = 3;
*/
public java.util.List
getSiteidsList() {
return java.util.Collections.unmodifiableList(siteids_);
}
/**
* repeated string siteids = 3;
*/
public int getSiteidsCount() {
return siteids_.size();
}
/**
* repeated string siteids = 3;
*/
public String getSiteids(int index) {
return siteids_.get(index);
}
/**
* repeated string siteids = 3;
*/
public com.google.protobuf.ByteString
getSiteidsBytes(int index) {
return siteids_.getByteString(index);
}
/**
* repeated string siteids = 3;
*/
public Builder setSiteids(
int index, String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSiteidsIsMutable();
siteids_.set(index, value);
onChanged();
return this;
}
/**
* repeated string siteids = 3;
*/
public Builder addSiteids(
String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSiteidsIsMutable();
siteids_.add(value);
onChanged();
return this;
}
/**
* repeated string siteids = 3;
*/
public Builder addAllSiteids(
Iterable values) {
ensureSiteidsIsMutable();
super.addAll(values, siteids_);
onChanged();
return this;
}
/**
* repeated string siteids = 3;
*/
public Builder clearSiteids() {
siteids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string siteids = 3;
*/
public Builder addSiteidsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureSiteidsIsMutable();
siteids_.add(value);
onChanged();
return this;
}
// repeated string codes = 4;
private com.google.protobuf.LazyStringList codes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureCodesIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
codes_ = new com.google.protobuf.LazyStringArrayList(codes_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated string codes = 4;
*/
public java.util.List
getCodesList() {
return java.util.Collections.unmodifiableList(codes_);
}
/**
* repeated string codes = 4;
*/
public int getCodesCount() {
return codes_.size();
}
/**
* repeated string codes = 4;
*/
public String getCodes(int index) {
return codes_.get(index);
}
/**
* repeated string codes = 4;
*/
public com.google.protobuf.ByteString
getCodesBytes(int index) {
return codes_.getByteString(index);
}
/**
* repeated string codes = 4;
*/
public Builder setCodes(
int index, String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCodesIsMutable();
codes_.set(index, value);
onChanged();
return this;
}
/**
* repeated string codes = 4;
*/
public Builder addCodes(
String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCodesIsMutable();
codes_.add(value);
onChanged();
return this;
}
/**
* repeated string codes = 4;
*/
public Builder addAllCodes(
Iterable values) {
ensureCodesIsMutable();
super.addAll(values, codes_);
onChanged();
return this;
}
/**
* repeated string codes = 4;
*/
public Builder clearCodes() {
codes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* repeated string codes = 4;
*/
public Builder addCodesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureCodesIsMutable();
codes_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.SubEventV2Customer)
}
static {
defaultInstance = new SubEventV2Customer(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.SubEventV2Customer)
}
public interface EventStrReqOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string eventJsonStr = 1;
/**
* required string eventJsonStr = 1;
*/
boolean hasEventJsonStr();
/**
* required string eventJsonStr = 1;
*/
String getEventJsonStr();
/**
* required string eventJsonStr = 1;
*/
com.google.protobuf.ByteString
getEventJsonStrBytes();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.EventStrReq}
*/
public static final class EventStrReq extends
com.google.protobuf.GeneratedMessage
implements EventStrReqOrBuilder {
// Use EventStrReq.newBuilder() to construct.
private EventStrReq(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private EventStrReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final EventStrReq defaultInstance;
public static EventStrReq getDefaultInstance() {
return defaultInstance;
}
public EventStrReq getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EventStrReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
eventJsonStr_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_EventStrReq_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_EventStrReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
EventStrReq.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public EventStrReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EventStrReq(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string eventJsonStr = 1;
public static final int EVENTJSONSTR_FIELD_NUMBER = 1;
private Object eventJsonStr_;
/**
* required string eventJsonStr = 1;
*/
public boolean hasEventJsonStr() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string eventJsonStr = 1;
*/
public String getEventJsonStr() {
Object ref = eventJsonStr_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
eventJsonStr_ = s;
}
return s;
}
}
/**
* required string eventJsonStr = 1;
*/
public com.google.protobuf.ByteString
getEventJsonStrBytes() {
Object ref = eventJsonStr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
eventJsonStr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
eventJsonStr_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasEventJsonStr()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getEventJsonStrBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getEventJsonStrBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static EventStrReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static EventStrReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static EventStrReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static EventStrReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static EventStrReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static EventStrReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static EventStrReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static EventStrReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static EventStrReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static EventStrReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(EventStrReq prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.EventStrReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements EventStrReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_EventStrReq_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_EventStrReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
EventStrReq.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.EventStrReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
eventJsonStr_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_EventStrReq_descriptor;
}
public EventStrReq getDefaultInstanceForType() {
return EventStrReq.getDefaultInstance();
}
public EventStrReq build() {
EventStrReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public EventStrReq buildPartial() {
EventStrReq result = new EventStrReq(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.eventJsonStr_ = eventJsonStr_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof EventStrReq) {
return mergeFrom((EventStrReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(EventStrReq other) {
if (other == EventStrReq.getDefaultInstance()) return this;
if (other.hasEventJsonStr()) {
bitField0_ |= 0x00000001;
eventJsonStr_ = other.eventJsonStr_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasEventJsonStr()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
EventStrReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (EventStrReq) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string eventJsonStr = 1;
private Object eventJsonStr_ = "";
/**
* required string eventJsonStr = 1;
*/
public boolean hasEventJsonStr() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string eventJsonStr = 1;
*/
public String getEventJsonStr() {
Object ref = eventJsonStr_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
eventJsonStr_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string eventJsonStr = 1;
*/
public com.google.protobuf.ByteString
getEventJsonStrBytes() {
Object ref = eventJsonStr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
eventJsonStr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string eventJsonStr = 1;
*/
public Builder setEventJsonStr(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
eventJsonStr_ = value;
onChanged();
return this;
}
/**
* required string eventJsonStr = 1;
*/
public Builder clearEventJsonStr() {
bitField0_ = (bitField0_ & ~0x00000001);
eventJsonStr_ = getDefaultInstance().getEventJsonStr();
onChanged();
return this;
}
/**
* required string eventJsonStr = 1;
*/
public Builder setEventJsonStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
eventJsonStr_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.EventStrReq)
}
static {
defaultInstance = new EventStrReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.EventStrReq)
}
public interface EventV2StrReqOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string eventJsonStr = 1;
/**
* required string eventJsonStr = 1;
*/
boolean hasEventJsonStr();
/**
* required string eventJsonStr = 1;
*/
String getEventJsonStr();
/**
* required string eventJsonStr = 1;
*/
com.google.protobuf.ByteString
getEventJsonStrBytes();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.EventV2StrReq}
*/
public static final class EventV2StrReq extends
com.google.protobuf.GeneratedMessage
implements EventV2StrReqOrBuilder {
// Use EventV2StrReq.newBuilder() to construct.
private EventV2StrReq(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private EventV2StrReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final EventV2StrReq defaultInstance;
public static EventV2StrReq getDefaultInstance() {
return defaultInstance;
}
public EventV2StrReq getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EventV2StrReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
eventJsonStr_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_EventV2StrReq_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_EventV2StrReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
EventV2StrReq.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public EventV2StrReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EventV2StrReq(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string eventJsonStr = 1;
public static final int EVENTJSONSTR_FIELD_NUMBER = 1;
private Object eventJsonStr_;
/**
* required string eventJsonStr = 1;
*/
public boolean hasEventJsonStr() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string eventJsonStr = 1;
*/
public String getEventJsonStr() {
Object ref = eventJsonStr_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
eventJsonStr_ = s;
}
return s;
}
}
/**
* required string eventJsonStr = 1;
*/
public com.google.protobuf.ByteString
getEventJsonStrBytes() {
Object ref = eventJsonStr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
eventJsonStr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
eventJsonStr_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasEventJsonStr()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getEventJsonStrBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getEventJsonStrBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static EventV2StrReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static EventV2StrReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static EventV2StrReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static EventV2StrReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static EventV2StrReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static EventV2StrReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static EventV2StrReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static EventV2StrReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static EventV2StrReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static EventV2StrReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(EventV2StrReq prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.EventV2StrReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements EventV2StrReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_EventV2StrReq_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_EventV2StrReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
EventV2StrReq.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.EventV2StrReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
eventJsonStr_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_EventV2StrReq_descriptor;
}
public EventV2StrReq getDefaultInstanceForType() {
return EventV2StrReq.getDefaultInstance();
}
public EventV2StrReq build() {
EventV2StrReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public EventV2StrReq buildPartial() {
EventV2StrReq result = new EventV2StrReq(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.eventJsonStr_ = eventJsonStr_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof EventV2StrReq) {
return mergeFrom((EventV2StrReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(EventV2StrReq other) {
if (other == EventV2StrReq.getDefaultInstance()) return this;
if (other.hasEventJsonStr()) {
bitField0_ |= 0x00000001;
eventJsonStr_ = other.eventJsonStr_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasEventJsonStr()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
EventV2StrReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (EventV2StrReq) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string eventJsonStr = 1;
private Object eventJsonStr_ = "";
/**
* required string eventJsonStr = 1;
*/
public boolean hasEventJsonStr() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string eventJsonStr = 1;
*/
public String getEventJsonStr() {
Object ref = eventJsonStr_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
eventJsonStr_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string eventJsonStr = 1;
*/
public com.google.protobuf.ByteString
getEventJsonStrBytes() {
Object ref = eventJsonStr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
eventJsonStr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string eventJsonStr = 1;
*/
public Builder setEventJsonStr(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
eventJsonStr_ = value;
onChanged();
return this;
}
/**
* required string eventJsonStr = 1;
*/
public Builder clearEventJsonStr() {
bitField0_ = (bitField0_ & ~0x00000001);
eventJsonStr_ = getDefaultInstance().getEventJsonStr();
onChanged();
return this;
}
/**
* required string eventJsonStr = 1;
*/
public Builder setEventJsonStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
eventJsonStr_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.EventV2StrReq)
}
static {
defaultInstance = new EventV2StrReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.EventV2StrReq)
}
public interface SubAssetDataOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
boolean hasSubType();
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
SubType getSubType();
// required int32 event = 2;
/**
* required int32 event = 2;
*/
boolean hasEvent();
/**
* required int32 event = 2;
*/
int getEvent();
// repeated string ancestors = 3;
/**
* repeated string ancestors = 3;
*/
java.util.List
getAncestorsList();
/**
* repeated string ancestors = 3;
*/
int getAncestorsCount();
/**
* repeated string ancestors = 3;
*/
String getAncestors(int index);
/**
* repeated string ancestors = 3;
*/
com.google.protobuf.ByteString
getAncestorsBytes(int index);
// repeated int32 types = 4;
/**
* repeated int32 types = 4;
*
*
*cimObjectTypeIds
*
*/
java.util.List getTypesList();
/**
* repeated int32 types = 4;
*
*
*cimObjectTypeIds
*
*/
int getTypesCount();
/**
* repeated int32 types = 4;
*
*
*cimObjectTypeIds
*
*/
int getTypes(int index);
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubAssetData}
*
*
*subCAssetChange InstanceChangeRsp , RedirectRsp
*
*/
public static final class SubAssetData extends
com.google.protobuf.GeneratedMessage
implements SubAssetDataOrBuilder {
// Use SubAssetData.newBuilder() to construct.
private SubAssetData(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SubAssetData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SubAssetData defaultInstance;
public static SubAssetData getDefaultInstance() {
return defaultInstance;
}
public SubAssetData getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubAssetData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
SubType value = SubType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
subType_ = value;
}
break;
}
case 16: {
bitField0_ |= 0x00000002;
event_ = input.readInt32();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
ancestors_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
ancestors_.add(input.readBytes());
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
types_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
types_.add(input.readInt32());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
types_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
types_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
ancestors_ = new com.google.protobuf.UnmodifiableLazyStringList(ancestors_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
types_ = java.util.Collections.unmodifiableList(types_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAssetData_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAssetData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubAssetData.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SubAssetData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubAssetData(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
public static final int SUBTYPE_FIELD_NUMBER = 1;
private SubType subType_;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public boolean hasSubType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public SubType getSubType() {
return subType_;
}
// required int32 event = 2;
public static final int EVENT_FIELD_NUMBER = 2;
private int event_;
/**
* required int32 event = 2;
*/
public boolean hasEvent() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 event = 2;
*/
public int getEvent() {
return event_;
}
// repeated string ancestors = 3;
public static final int ANCESTORS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList ancestors_;
/**
* repeated string ancestors = 3;
*/
public java.util.List
getAncestorsList() {
return ancestors_;
}
/**
* repeated string ancestors = 3;
*/
public int getAncestorsCount() {
return ancestors_.size();
}
/**
* repeated string ancestors = 3;
*/
public String getAncestors(int index) {
return ancestors_.get(index);
}
/**
* repeated string ancestors = 3;
*/
public com.google.protobuf.ByteString
getAncestorsBytes(int index) {
return ancestors_.getByteString(index);
}
// repeated int32 types = 4;
public static final int TYPES_FIELD_NUMBER = 4;
private java.util.List types_;
/**
* repeated int32 types = 4;
*
*
*cimObjectTypeIds
*
*/
public java.util.List
getTypesList() {
return types_;
}
/**
* repeated int32 types = 4;
*
*
*cimObjectTypeIds
*
*/
public int getTypesCount() {
return types_.size();
}
/**
* repeated int32 types = 4;
*
*
*cimObjectTypeIds
*
*/
public int getTypes(int index) {
return types_.get(index);
}
private void initFields() {
subType_ = SubType.unsub;
event_ = 0;
ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
types_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSubType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasEvent()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, subType_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, event_);
}
for (int i = 0; i < ancestors_.size(); i++) {
output.writeBytes(3, ancestors_.getByteString(i));
}
for (int i = 0; i < types_.size(); i++) {
output.writeInt32(4, types_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, subType_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, event_);
}
{
int dataSize = 0;
for (int i = 0; i < ancestors_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(ancestors_.getByteString(i));
}
size += dataSize;
size += 1 * getAncestorsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < types_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(types_.get(i));
}
size += dataSize;
size += 1 * getTypesList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static SubAssetData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubAssetData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubAssetData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SubAssetData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SubAssetData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubAssetData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static SubAssetData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static SubAssetData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static SubAssetData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static SubAssetData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(SubAssetData prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.SubAssetData}
*
*
*subCAssetChange InstanceChangeRsp , RedirectRsp
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements SubAssetDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAssetData_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAssetData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SubAssetData.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.SubAssetData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
subType_ = SubType.unsub;
bitField0_ = (bitField0_ & ~0x00000001);
event_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
types_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_SubAssetData_descriptor;
}
public SubAssetData getDefaultInstanceForType() {
return SubAssetData.getDefaultInstance();
}
public SubAssetData build() {
SubAssetData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public SubAssetData buildPartial() {
SubAssetData result = new SubAssetData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.subType_ = subType_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.event_ = event_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
ancestors_ = new com.google.protobuf.UnmodifiableLazyStringList(
ancestors_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.ancestors_ = ancestors_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
types_ = java.util.Collections.unmodifiableList(types_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.types_ = types_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof SubAssetData) {
return mergeFrom((SubAssetData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(SubAssetData other) {
if (other == SubAssetData.getDefaultInstance()) return this;
if (other.hasSubType()) {
setSubType(other.getSubType());
}
if (other.hasEvent()) {
setEvent(other.getEvent());
}
if (!other.ancestors_.isEmpty()) {
if (ancestors_.isEmpty()) {
ancestors_ = other.ancestors_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureAncestorsIsMutable();
ancestors_.addAll(other.ancestors_);
}
onChanged();
}
if (!other.types_.isEmpty()) {
if (types_.isEmpty()) {
types_ = other.types_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureTypesIsMutable();
types_.addAll(other.types_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSubType()) {
return false;
}
if (!hasEvent()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
SubAssetData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (SubAssetData) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
private SubType subType_ = SubType.unsub;
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public boolean hasSubType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public SubType getSubType() {
return subType_;
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public Builder setSubType(SubType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
subType_ = value;
onChanged();
return this;
}
/**
* required .com.envision.energy.connective.protobuf.generated.SubType subType = 1;
*/
public Builder clearSubType() {
bitField0_ = (bitField0_ & ~0x00000001);
subType_ = SubType.unsub;
onChanged();
return this;
}
// required int32 event = 2;
private int event_ ;
/**
* required int32 event = 2;
*/
public boolean hasEvent() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 event = 2;
*/
public int getEvent() {
return event_;
}
/**
* required int32 event = 2;
*/
public Builder setEvent(int value) {
bitField0_ |= 0x00000002;
event_ = value;
onChanged();
return this;
}
/**
* required int32 event = 2;
*/
public Builder clearEvent() {
bitField0_ = (bitField0_ & ~0x00000002);
event_ = 0;
onChanged();
return this;
}
// repeated string ancestors = 3;
private com.google.protobuf.LazyStringList ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAncestorsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string ancestors = 3;
*/
public java.util.List
getAncestorsList() {
return java.util.Collections.unmodifiableList(ancestors_);
}
/**
* repeated string ancestors = 3;
*/
public int getAncestorsCount() {
return ancestors_.size();
}
/**
* repeated string ancestors = 3;
*/
public String getAncestors(int index) {
return ancestors_.get(index);
}
/**
* repeated string ancestors = 3;
*/
public com.google.protobuf.ByteString
getAncestorsBytes(int index) {
return ancestors_.getByteString(index);
}
/**
* repeated string ancestors = 3;
*/
public Builder setAncestors(
int index, String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAncestorsIsMutable();
ancestors_.set(index, value);
onChanged();
return this;
}
/**
* repeated string ancestors = 3;
*/
public Builder addAncestors(
String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAncestorsIsMutable();
ancestors_.add(value);
onChanged();
return this;
}
/**
* repeated string ancestors = 3;
*/
public Builder addAllAncestors(
Iterable values) {
ensureAncestorsIsMutable();
super.addAll(values, ancestors_);
onChanged();
return this;
}
/**
* repeated string ancestors = 3;
*/
public Builder clearAncestors() {
ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string ancestors = 3;
*/
public Builder addAncestorsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureAncestorsIsMutable();
ancestors_.add(value);
onChanged();
return this;
}
// repeated int32 types = 4;
private java.util.List types_ = java.util.Collections.emptyList();
private void ensureTypesIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
types_ = new java.util.ArrayList(types_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated int32 types = 4;
*
*
*cimObjectTypeIds
*
*/
public java.util.List
getTypesList() {
return java.util.Collections.unmodifiableList(types_);
}
/**
* repeated int32 types = 4;
*
*
*cimObjectTypeIds
*
*/
public int getTypesCount() {
return types_.size();
}
/**
* repeated int32 types = 4;
*
*
*cimObjectTypeIds
*
*/
public int getTypes(int index) {
return types_.get(index);
}
/**
* repeated int32 types = 4;
*
*
*cimObjectTypeIds
*
*/
public Builder setTypes(
int index, int value) {
ensureTypesIsMutable();
types_.set(index, value);
onChanged();
return this;
}
/**
* repeated int32 types = 4;
*
*
*cimObjectTypeIds
*
*/
public Builder addTypes(int value) {
ensureTypesIsMutable();
types_.add(value);
onChanged();
return this;
}
/**
* repeated int32 types = 4;
*
*
*cimObjectTypeIds
*
*/
public Builder addAllTypes(
Iterable extends Integer> values) {
ensureTypesIsMutable();
super.addAll(values, types_);
onChanged();
return this;
}
/**
* repeated int32 types = 4;
*
*
*cimObjectTypeIds
*
*/
public Builder clearTypes() {
types_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.SubAssetData)
}
static {
defaultInstance = new SubAssetData(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.SubAssetData)
}
public interface AssetChangeDetailOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string mdmId = 1;
/**
* required string mdmId = 1;
*/
boolean hasMdmId();
/**
* required string mdmId = 1;
*/
String getMdmId();
/**
* required string mdmId = 1;
*/
com.google.protobuf.ByteString
getMdmIdBytes();
// optional string attributesJson = 2;
/**
* optional string attributesJson = 2;
*/
boolean hasAttributesJson();
/**
* optional string attributesJson = 2;
*/
String getAttributesJson();
/**
* optional string attributesJson = 2;
*/
com.google.protobuf.ByteString
getAttributesJsonBytes();
// required int64 ts = 3;
/**
* required int64 ts = 3;
*/
boolean hasTs();
/**
* required int64 ts = 3;
*/
long getTs();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.AssetChangeDetail}
*/
public static final class AssetChangeDetail extends
com.google.protobuf.GeneratedMessage
implements AssetChangeDetailOrBuilder {
// Use AssetChangeDetail.newBuilder() to construct.
private AssetChangeDetail(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private AssetChangeDetail(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final AssetChangeDetail defaultInstance;
public static AssetChangeDetail getDefaultInstance() {
return defaultInstance;
}
public AssetChangeDetail getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AssetChangeDetail(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
mdmId_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
attributesJson_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
ts_ = 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.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeDetail_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeDetail_fieldAccessorTable
.ensureFieldAccessorsInitialized(
AssetChangeDetail.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public AssetChangeDetail parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AssetChangeDetail(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string mdmId = 1;
public static final int MDMID_FIELD_NUMBER = 1;
private Object mdmId_;
/**
* required string mdmId = 1;
*/
public boolean hasMdmId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string mdmId = 1;
*/
public String getMdmId() {
Object ref = mdmId_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
mdmId_ = s;
}
return s;
}
}
/**
* required string mdmId = 1;
*/
public com.google.protobuf.ByteString
getMdmIdBytes() {
Object ref = mdmId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
mdmId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string attributesJson = 2;
public static final int ATTRIBUTESJSON_FIELD_NUMBER = 2;
private Object attributesJson_;
/**
* optional string attributesJson = 2;
*/
public boolean hasAttributesJson() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string attributesJson = 2;
*/
public String getAttributesJson() {
Object ref = attributesJson_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
attributesJson_ = s;
}
return s;
}
}
/**
* optional string attributesJson = 2;
*/
public com.google.protobuf.ByteString
getAttributesJsonBytes() {
Object ref = attributesJson_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
attributesJson_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int64 ts = 3;
public static final int TS_FIELD_NUMBER = 3;
private long ts_;
/**
* required int64 ts = 3;
*/
public boolean hasTs() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int64 ts = 3;
*/
public long getTs() {
return ts_;
}
private void initFields() {
mdmId_ = "";
attributesJson_ = "";
ts_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasMdmId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTs()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getMdmIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getAttributesJsonBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, ts_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getMdmIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getAttributesJsonBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, ts_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static AssetChangeDetail parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static AssetChangeDetail parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static AssetChangeDetail parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static AssetChangeDetail parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static AssetChangeDetail parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static AssetChangeDetail parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static AssetChangeDetail parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static AssetChangeDetail parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static AssetChangeDetail parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static AssetChangeDetail parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(AssetChangeDetail prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.AssetChangeDetail}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements AssetChangeDetailOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeDetail_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeDetail_fieldAccessorTable
.ensureFieldAccessorsInitialized(
AssetChangeDetail.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.AssetChangeDetail.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
mdmId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
attributesJson_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
ts_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeDetail_descriptor;
}
public AssetChangeDetail getDefaultInstanceForType() {
return AssetChangeDetail.getDefaultInstance();
}
public AssetChangeDetail build() {
AssetChangeDetail result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public AssetChangeDetail buildPartial() {
AssetChangeDetail result = new AssetChangeDetail(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.mdmId_ = mdmId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.attributesJson_ = attributesJson_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.ts_ = ts_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof AssetChangeDetail) {
return mergeFrom((AssetChangeDetail)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(AssetChangeDetail other) {
if (other == AssetChangeDetail.getDefaultInstance()) return this;
if (other.hasMdmId()) {
bitField0_ |= 0x00000001;
mdmId_ = other.mdmId_;
onChanged();
}
if (other.hasAttributesJson()) {
bitField0_ |= 0x00000002;
attributesJson_ = other.attributesJson_;
onChanged();
}
if (other.hasTs()) {
setTs(other.getTs());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasMdmId()) {
return false;
}
if (!hasTs()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
AssetChangeDetail parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (AssetChangeDetail) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string mdmId = 1;
private Object mdmId_ = "";
/**
* required string mdmId = 1;
*/
public boolean hasMdmId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string mdmId = 1;
*/
public String getMdmId() {
Object ref = mdmId_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
mdmId_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string mdmId = 1;
*/
public com.google.protobuf.ByteString
getMdmIdBytes() {
Object ref = mdmId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
mdmId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string mdmId = 1;
*/
public Builder setMdmId(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
mdmId_ = value;
onChanged();
return this;
}
/**
* required string mdmId = 1;
*/
public Builder clearMdmId() {
bitField0_ = (bitField0_ & ~0x00000001);
mdmId_ = getDefaultInstance().getMdmId();
onChanged();
return this;
}
/**
* required string mdmId = 1;
*/
public Builder setMdmIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
mdmId_ = value;
onChanged();
return this;
}
// optional string attributesJson = 2;
private Object attributesJson_ = "";
/**
* optional string attributesJson = 2;
*/
public boolean hasAttributesJson() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string attributesJson = 2;
*/
public String getAttributesJson() {
Object ref = attributesJson_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
attributesJson_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* optional string attributesJson = 2;
*/
public com.google.protobuf.ByteString
getAttributesJsonBytes() {
Object ref = attributesJson_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
attributesJson_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string attributesJson = 2;
*/
public Builder setAttributesJson(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
attributesJson_ = value;
onChanged();
return this;
}
/**
* optional string attributesJson = 2;
*/
public Builder clearAttributesJson() {
bitField0_ = (bitField0_ & ~0x00000002);
attributesJson_ = getDefaultInstance().getAttributesJson();
onChanged();
return this;
}
/**
* optional string attributesJson = 2;
*/
public Builder setAttributesJsonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
attributesJson_ = value;
onChanged();
return this;
}
// required int64 ts = 3;
private long ts_ ;
/**
* required int64 ts = 3;
*/
public boolean hasTs() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int64 ts = 3;
*/
public long getTs() {
return ts_;
}
/**
* required int64 ts = 3;
*/
public Builder setTs(long value) {
bitField0_ |= 0x00000004;
ts_ = value;
onChanged();
return this;
}
/**
* required int64 ts = 3;
*/
public Builder clearTs() {
bitField0_ = (bitField0_ & ~0x00000004);
ts_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.AssetChangeDetail)
}
static {
defaultInstance = new AssetChangeDetail(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.AssetChangeDetail)
}
public interface AssetChangeRspOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required int32 event = 1;
/**
* required int32 event = 1;
*/
boolean hasEvent();
/**
* required int32 event = 1;
*/
int getEvent();
// repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
java.util.List
getDataList();
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
AssetChangeDetail getData(int index);
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
int getDataCount();
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
java.util.List extends AssetChangeDetailOrBuilder>
getDataOrBuilderList();
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
AssetChangeDetailOrBuilder getDataOrBuilder(
int index);
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.AssetChangeRsp}
*
*
* only same event will aggregate
*
*/
public static final class AssetChangeRsp extends
com.google.protobuf.GeneratedMessage
implements AssetChangeRspOrBuilder {
// Use AssetChangeRsp.newBuilder() to construct.
private AssetChangeRsp(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private AssetChangeRsp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final AssetChangeRsp defaultInstance;
public static AssetChangeRsp getDefaultInstance() {
return defaultInstance;
}
public AssetChangeRsp getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AssetChangeRsp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
event_ = input.readInt32();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
data_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
data_.add(input.readMessage(AssetChangeDetail.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.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
data_ = java.util.Collections.unmodifiableList(data_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeRsp_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
AssetChangeRsp.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public AssetChangeRsp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AssetChangeRsp(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required int32 event = 1;
public static final int EVENT_FIELD_NUMBER = 1;
private int event_;
/**
* required int32 event = 1;
*/
public boolean hasEvent() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 event = 1;
*/
public int getEvent() {
return event_;
}
// repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
public static final int DATA_FIELD_NUMBER = 2;
private java.util.List data_;
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public java.util.List getDataList() {
return data_;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public java.util.List extends AssetChangeDetailOrBuilder>
getDataOrBuilderList() {
return data_;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public int getDataCount() {
return data_.size();
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public AssetChangeDetail getData(int index) {
return data_.get(index);
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public AssetChangeDetailOrBuilder getDataOrBuilder(
int index) {
return data_.get(index);
}
private void initFields() {
event_ = 0;
data_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasEvent()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getDataCount(); i++) {
if (!getData(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, event_);
}
for (int i = 0; i < data_.size(); i++) {
output.writeMessage(2, data_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, event_);
}
for (int i = 0; i < data_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, data_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static AssetChangeRsp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static AssetChangeRsp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static AssetChangeRsp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static AssetChangeRsp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static AssetChangeRsp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static AssetChangeRsp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static AssetChangeRsp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static AssetChangeRsp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static AssetChangeRsp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static AssetChangeRsp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(AssetChangeRsp prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.AssetChangeRsp}
*
*
* only same event will aggregate
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements AssetChangeRspOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeRsp_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
AssetChangeRsp.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.AssetChangeRsp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getDataFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
event_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (dataBuilder_ == null) {
data_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
dataBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeRsp_descriptor;
}
public AssetChangeRsp getDefaultInstanceForType() {
return AssetChangeRsp.getDefaultInstance();
}
public AssetChangeRsp build() {
AssetChangeRsp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public AssetChangeRsp buildPartial() {
AssetChangeRsp result = new AssetChangeRsp(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.event_ = event_;
if (dataBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
data_ = java.util.Collections.unmodifiableList(data_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof AssetChangeRsp) {
return mergeFrom((AssetChangeRsp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(AssetChangeRsp other) {
if (other == AssetChangeRsp.getDefaultInstance()) return this;
if (other.hasEvent()) {
setEvent(other.getEvent());
}
if (dataBuilder_ == null) {
if (!other.data_.isEmpty()) {
if (data_.isEmpty()) {
data_ = other.data_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDataIsMutable();
data_.addAll(other.data_);
}
onChanged();
}
} else {
if (!other.data_.isEmpty()) {
if (dataBuilder_.isEmpty()) {
dataBuilder_.dispose();
dataBuilder_ = null;
data_ = other.data_;
bitField0_ = (bitField0_ & ~0x00000002);
dataBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getDataFieldBuilder() : null;
} else {
dataBuilder_.addAllMessages(other.data_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasEvent()) {
return false;
}
for (int i = 0; i < getDataCount(); i++) {
if (!getData(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
AssetChangeRsp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (AssetChangeRsp) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required int32 event = 1;
private int event_ ;
/**
* required int32 event = 1;
*/
public boolean hasEvent() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 event = 1;
*/
public int getEvent() {
return event_;
}
/**
* required int32 event = 1;
*/
public Builder setEvent(int value) {
bitField0_ |= 0x00000001;
event_ = value;
onChanged();
return this;
}
/**
* required int32 event = 1;
*/
public Builder clearEvent() {
bitField0_ = (bitField0_ & ~0x00000001);
event_ = 0;
onChanged();
return this;
}
// repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
private java.util.List data_ =
java.util.Collections.emptyList();
private void ensureDataIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
data_ = new java.util.ArrayList(data_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
AssetChangeDetail, AssetChangeDetail.Builder, AssetChangeDetailOrBuilder> dataBuilder_;
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public java.util.List getDataList() {
if (dataBuilder_ == null) {
return java.util.Collections.unmodifiableList(data_);
} else {
return dataBuilder_.getMessageList();
}
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public int getDataCount() {
if (dataBuilder_ == null) {
return data_.size();
} else {
return dataBuilder_.getCount();
}
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public AssetChangeDetail getData(int index) {
if (dataBuilder_ == null) {
return data_.get(index);
} else {
return dataBuilder_.getMessage(index);
}
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public Builder setData(
int index, AssetChangeDetail value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataIsMutable();
data_.set(index, value);
onChanged();
} else {
dataBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public Builder setData(
int index, AssetChangeDetail.Builder builderForValue) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
data_.set(index, builderForValue.build());
onChanged();
} else {
dataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public Builder addData(AssetChangeDetail value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataIsMutable();
data_.add(value);
onChanged();
} else {
dataBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public Builder addData(
int index, AssetChangeDetail value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataIsMutable();
data_.add(index, value);
onChanged();
} else {
dataBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public Builder addData(
AssetChangeDetail.Builder builderForValue) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
data_.add(builderForValue.build());
onChanged();
} else {
dataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public Builder addData(
int index, AssetChangeDetail.Builder builderForValue) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
data_.add(index, builderForValue.build());
onChanged();
} else {
dataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public Builder addAllData(
Iterable extends AssetChangeDetail> values) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
super.addAll(values, data_);
onChanged();
} else {
dataBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
dataBuilder_.clear();
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public Builder removeData(int index) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
data_.remove(index);
onChanged();
} else {
dataBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public AssetChangeDetail.Builder getDataBuilder(
int index) {
return getDataFieldBuilder().getBuilder(index);
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public AssetChangeDetailOrBuilder getDataOrBuilder(
int index) {
if (dataBuilder_ == null) {
return data_.get(index); } else {
return dataBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public java.util.List extends AssetChangeDetailOrBuilder>
getDataOrBuilderList() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(data_);
}
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public AssetChangeDetail.Builder addDataBuilder() {
return getDataFieldBuilder().addBuilder(
AssetChangeDetail.getDefaultInstance());
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public AssetChangeDetail.Builder addDataBuilder(
int index) {
return getDataFieldBuilder().addBuilder(
index, AssetChangeDetail.getDefaultInstance());
}
/**
* repeated .com.envision.energy.connective.protobuf.generated.AssetChangeDetail data = 2;
*/
public java.util.List
getDataBuilderList() {
return getDataFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
AssetChangeDetail, AssetChangeDetail.Builder, AssetChangeDetailOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
AssetChangeDetail, AssetChangeDetail.Builder, AssetChangeDetailOrBuilder>(
data_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.AssetChangeRsp)
}
static {
defaultInstance = new AssetChangeRsp(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.AssetChangeRsp)
}
public interface RedirectOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string event = 1;
/**
* required string event = 1;
*/
boolean hasEvent();
/**
* required string event = 1;
*/
String getEvent();
/**
* required string event = 1;
*/
com.google.protobuf.ByteString
getEventBytes();
// required string addr = 2;
/**
* required string addr = 2;
*/
boolean hasAddr();
/**
* required string addr = 2;
*/
String getAddr();
/**
* required string addr = 2;
*/
com.google.protobuf.ByteString
getAddrBytes();
// required int32 port = 3;
/**
* required int32 port = 3;
*/
boolean hasPort();
/**
* required int32 port = 3;
*/
int getPort();
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.Redirect}
*
*
*redirect the connection to annother sub_srv
*
*/
public static final class Redirect extends
com.google.protobuf.GeneratedMessage
implements RedirectOrBuilder {
// Use Redirect.newBuilder() to construct.
private Redirect(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Redirect(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Redirect defaultInstance;
public static Redirect getDefaultInstance() {
return defaultInstance;
}
public Redirect getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Redirect(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
event_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
addr_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
port_ = 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.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_Redirect_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_Redirect_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Redirect.class, Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Redirect parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Redirect(input, extensionRegistry);
}
};
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string event = 1;
public static final int EVENT_FIELD_NUMBER = 1;
private Object event_;
/**
* required string event = 1;
*/
public boolean hasEvent() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string event = 1;
*/
public String getEvent() {
Object ref = event_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
event_ = s;
}
return s;
}
}
/**
* required string event = 1;
*/
public com.google.protobuf.ByteString
getEventBytes() {
Object ref = event_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
event_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string addr = 2;
public static final int ADDR_FIELD_NUMBER = 2;
private Object addr_;
/**
* required string addr = 2;
*/
public boolean hasAddr() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string addr = 2;
*/
public String getAddr() {
Object ref = addr_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
addr_ = s;
}
return s;
}
}
/**
* required string addr = 2;
*/
public com.google.protobuf.ByteString
getAddrBytes() {
Object ref = addr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
addr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 port = 3;
public static final int PORT_FIELD_NUMBER = 3;
private int port_;
/**
* required int32 port = 3;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 port = 3;
*/
public int getPort() {
return port_;
}
private void initFields() {
event_ = "";
addr_ = "";
port_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasEvent()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasAddr()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasPort()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getEventBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getAddrBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, port_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getEventBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getAddrBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, port_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@Override
protected Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static Redirect parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Redirect parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Redirect parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Redirect parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Redirect parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Redirect parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Redirect parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static Redirect parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static Redirect parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Redirect parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(Redirect prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.envision.energy.connective.protobuf.generated.Redirect}
*
*
*redirect the connection to annother sub_srv
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements RedirectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_Redirect_descriptor;
}
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_Redirect_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Redirect.class, Builder.class);
}
// Construct using com.envision.energy.connective.protobuf.generated.Sdk.Redirect.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
event_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
addr_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
port_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Sdk.internal_static_com_envision_energy_connective_protobuf_generated_Redirect_descriptor;
}
public Redirect getDefaultInstanceForType() {
return Redirect.getDefaultInstance();
}
public Redirect build() {
Redirect result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public Redirect buildPartial() {
Redirect result = new Redirect(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.event_ = event_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.addr_ = addr_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.port_ = port_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Redirect) {
return mergeFrom((Redirect)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(Redirect other) {
if (other == Redirect.getDefaultInstance()) return this;
if (other.hasEvent()) {
bitField0_ |= 0x00000001;
event_ = other.event_;
onChanged();
}
if (other.hasAddr()) {
bitField0_ |= 0x00000002;
addr_ = other.addr_;
onChanged();
}
if (other.hasPort()) {
setPort(other.getPort());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasEvent()) {
return false;
}
if (!hasAddr()) {
return false;
}
if (!hasPort()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Redirect parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (Redirect) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string event = 1;
private Object event_ = "";
/**
* required string event = 1;
*/
public boolean hasEvent() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string event = 1;
*/
public String getEvent() {
Object ref = event_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
event_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string event = 1;
*/
public com.google.protobuf.ByteString
getEventBytes() {
Object ref = event_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
event_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string event = 1;
*/
public Builder setEvent(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
event_ = value;
onChanged();
return this;
}
/**
* required string event = 1;
*/
public Builder clearEvent() {
bitField0_ = (bitField0_ & ~0x00000001);
event_ = getDefaultInstance().getEvent();
onChanged();
return this;
}
/**
* required string event = 1;
*/
public Builder setEventBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
event_ = value;
onChanged();
return this;
}
// required string addr = 2;
private Object addr_ = "";
/**
* required string addr = 2;
*/
public boolean hasAddr() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string addr = 2;
*/
public String getAddr() {
Object ref = addr_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
addr_ = s;
return s;
} else {
return (String) ref;
}
}
/**
* required string addr = 2;
*/
public com.google.protobuf.ByteString
getAddrBytes() {
Object ref = addr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
addr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string addr = 2;
*/
public Builder setAddr(
String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
addr_ = value;
onChanged();
return this;
}
/**
* required string addr = 2;
*/
public Builder clearAddr() {
bitField0_ = (bitField0_ & ~0x00000002);
addr_ = getDefaultInstance().getAddr();
onChanged();
return this;
}
/**
* required string addr = 2;
*/
public Builder setAddrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
addr_ = value;
onChanged();
return this;
}
// required int32 port = 3;
private int port_ ;
/**
* required int32 port = 3;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 port = 3;
*/
public int getPort() {
return port_;
}
/**
* required int32 port = 3;
*/
public Builder setPort(int value) {
bitField0_ |= 0x00000004;
port_ = value;
onChanged();
return this;
}
/**
* required int32 port = 3;
*/
public Builder clearPort() {
bitField0_ = (bitField0_ & ~0x00000004);
port_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.envision.energy.connective.protobuf.generated.Redirect)
}
static {
defaultInstance = new Redirect(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.envision.energy.connective.protobuf.generated.Redirect)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_IdleReq_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_IdleReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_IdleRsp_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_IdleRsp_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_SubAllData_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_SubAllData_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_PointInfoReq_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_PointInfoReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_SubDevData_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_SubDevData_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_SubDomainData_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_SubDomainData_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_SubAllAlarm_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_SubAllAlarm_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_SubIdMsg_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_SubIdMsg_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthReq_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthRes_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthRes_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_AlertStrReq_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_AlertStrReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_PointDetail_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_PointDetail_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_SubEventCustomer_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_SubEventCustomer_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_SubEventV2Customer_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_SubEventV2Customer_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_EventStrReq_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_EventStrReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_EventV2StrReq_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_EventV2StrReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_SubAssetData_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_SubAssetData_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeDetail_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeDetail_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeRsp_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeRsp_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_envision_energy_connective_protobuf_generated_Redirect_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_envision_energy_connective_protobuf_generated_Redirect_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
String[] descriptorData = {
"\n\tsdk.proto\0221com.envision.energy.connect" +
"ive.protobuf.generated\"\t\n\007IdleReq\"\032\n\007Idl" +
"eRsp\022\017\n\007svrTime\030\001 \002(\003\"Y\n\nSubAllData\022K\n\007s" +
"ubType\030\001 \002(\0162:.com.envision.energy.conne" +
"ctive.protobuf.generated.SubType\"-\n\014Poin" +
"tInfoReq\022\016\n\006device\030\001 \002(\t\022\r\n\005point\030\002 \002(\t\"" +
"\252\001\n\nSubDevData\022O\n\006devPts\030\001 \003(\0132?.com.env" +
"ision.energy.connective.protobuf.generat" +
"ed.PointInfoReq\022K\n\007subType\030\002 \002(\0162:.com.e" +
"nvision.energy.connective.protobuf.gener",
"ated.SubType\"|\n\rSubDomainData\022\016\n\006domain\030" +
"\001 \002(\t\022\016\n\006points\030\002 \003(\t\022K\n\007subType\030\003 \002(\0162:" +
".com.envision.energy.connective.protobuf" +
".generated.SubType\"Z\n\013SubAllAlarm\022K\n\007sub" +
"Type\030\001 \002(\0162:.com.envision.energy.connect" +
"ive.protobuf.generated.SubType\"\031\n\010SubIdM" +
"sg\022\r\n\005subId\030\001 \002(\005\"M\n\nSDKAuthReq\022\016\n\006appke" +
"y\030\001 \002(\t\022\021\n\tsignature\030\002 \002(\t\022\r\n\005ackId\030\003 \002(" +
"\005\022\r\n\005token\030\004 \001(\t\",\n\nSDKAuthRes\022\017\n\007svrTim" +
"e\030\001 \002(\003\022\r\n\005token\030\002 \001(\t\"#\n\013AlertStrReq\022\024\n",
"\014alertJsonStr\030\001 \002(\t\"\214\001\n\013PointDetail\022\t\n\001p" +
"\030\001 \002(\t\022\t\n\001d\030\002 \002(\t\022\t\n\001s\030\003 \002(\t\022\t\n\001v\030\004 \002(\t\022" +
"\t\n\001t\030\005 \002(\003\022\t\n\001a\030\006 \002(\t\022\t\n\001m\030\007 \002(\t\022\013\n\003lcv\030" +
"\010 \002(\t\022\013\n\003lct\030\t \002(\003\022\n\n\002lv\030\n \002(\t\022\n\n\002lt\030\013 \002" +
"(\003\"\224\001\n\020SubEventCustomer\022K\n\007subType\030\001 \002(\016" +
"2:.com.envision.energy.connective.protob" +
"uf.generated.SubType\022\023\n\013customerids\030\002 \003(" +
"\t\022\017\n\007siteids\030\003 \003(\t\022\r\n\005codes\030\004 \003(\t\"\226\001\n\022Su" +
"bEventV2Customer\022K\n\007subType\030\001 \002(\0162:.com." +
"envision.energy.connective.protobuf.gene",
"rated.SubType\022\023\n\013customerids\030\002 \003(\t\022\017\n\007si" +
"teids\030\003 \003(\t\022\r\n\005codes\030\004 \003(\t\"#\n\013EventStrRe" +
"q\022\024\n\014eventJsonStr\030\001 \002(\t\"%\n\rEventV2StrReq" +
"\022\024\n\014eventJsonStr\030\001 \002(\t\"\214\001\n\014SubAssetData\022" +
"K\n\007subType\030\001 \002(\0162:.com.envision.energy.c" +
"onnective.protobuf.generated.SubType\022\r\n\005" +
"event\030\002 \002(\005\022\021\n\tancestors\030\003 \003(\t\022\r\n\005types\030" +
"\004 \003(\005\"F\n\021AssetChangeDetail\022\r\n\005mdmId\030\001 \002(" +
"\t\022\026\n\016attributesJson\030\002 \001(\t\022\n\n\002ts\030\003 \002(\003\"s\n" +
"\016AssetChangeRsp\022\r\n\005event\030\001 \002(\005\022R\n\004data\030\002",
" \003(\0132D.com.envision.energy.connective.pr" +
"otobuf.generated.AssetChangeDetail\"5\n\010Re" +
"direct\022\r\n\005event\030\001 \002(\t\022\014\n\004addr\030\002 \002(\t\022\014\n\004p" +
"ort\030\003 \002(\005*\370\002\n\005CmdId\022\022\n\016kv_pair_record\020\000\022" +
"\014\n\010auth_req\020\001\022\014\n\010auth_res\020\002\022\014\n\010idle_req\020" +
"\003\022\014\n\010idle_rsp\020\004\022\n\n\006sub_id\020\005\022\r\n\talert_req" +
"\020\006\022\024\n\020sub_all_data_req\020\007\022\024\n\020sub_dev_data" +
"_req\020\010\022\027\n\023sub_domain_data_req\020\t\022\025\n\021sub_a" +
"ll_alarm_req\020\n\022\020\n\014point_detail\020\013\022\032\n\026sub_" +
"event_customer_req\020\014\022\r\n\tevent_req\020\r\022\030\n\024s",
"ub_asset_change_req\020\016\022\024\n\020asset_change_rs" +
"p\020\017\022\020\n\014redirect_rsp\020\020\022\034\n\030sub_eventv2_cus" +
"tomer_req\020\021\022\017\n\013eventv2_req\020\022*(\n\007SubType\022" +
"\t\n\005unsub\020\000\022\007\n\003sub\020\001\022\t\n\005ptsub\020\002B8\n1com.en" +
"vision.energy.connective.protobuf.genera" +
"tedB\003Sdk"
};
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;
internal_static_com_envision_energy_connective_protobuf_generated_IdleReq_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_envision_energy_connective_protobuf_generated_IdleReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_IdleReq_descriptor,
new String[] { });
internal_static_com_envision_energy_connective_protobuf_generated_IdleRsp_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_envision_energy_connective_protobuf_generated_IdleRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_IdleRsp_descriptor,
new String[] { "SvrTime", });
internal_static_com_envision_energy_connective_protobuf_generated_SubAllData_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_envision_energy_connective_protobuf_generated_SubAllData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_SubAllData_descriptor,
new String[] { "SubType", });
internal_static_com_envision_energy_connective_protobuf_generated_PointInfoReq_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_com_envision_energy_connective_protobuf_generated_PointInfoReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_PointInfoReq_descriptor,
new String[] { "Device", "Point", });
internal_static_com_envision_energy_connective_protobuf_generated_SubDevData_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_com_envision_energy_connective_protobuf_generated_SubDevData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_SubDevData_descriptor,
new String[] { "DevPts", "SubType", });
internal_static_com_envision_energy_connective_protobuf_generated_SubDomainData_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_com_envision_energy_connective_protobuf_generated_SubDomainData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_SubDomainData_descriptor,
new String[] { "Domain", "Points", "SubType", });
internal_static_com_envision_energy_connective_protobuf_generated_SubAllAlarm_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_com_envision_energy_connective_protobuf_generated_SubAllAlarm_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_SubAllAlarm_descriptor,
new String[] { "SubType", });
internal_static_com_envision_energy_connective_protobuf_generated_SubIdMsg_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_com_envision_energy_connective_protobuf_generated_SubIdMsg_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_SubIdMsg_descriptor,
new String[] { "SubId", });
internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthReq_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthReq_descriptor,
new String[] { "Appkey", "Signature", "AckId", "Token", });
internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthRes_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthRes_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_SDKAuthRes_descriptor,
new String[] { "SvrTime", "Token", });
internal_static_com_envision_energy_connective_protobuf_generated_AlertStrReq_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_com_envision_energy_connective_protobuf_generated_AlertStrReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_AlertStrReq_descriptor,
new String[] { "AlertJsonStr", });
internal_static_com_envision_energy_connective_protobuf_generated_PointDetail_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_com_envision_energy_connective_protobuf_generated_PointDetail_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_PointDetail_descriptor,
new String[] { "P", "D", "S", "V", "T", "A", "M", "Lcv", "Lct", "Lv", "Lt", });
internal_static_com_envision_energy_connective_protobuf_generated_SubEventCustomer_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_com_envision_energy_connective_protobuf_generated_SubEventCustomer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_SubEventCustomer_descriptor,
new String[] { "SubType", "Customerids", "Siteids", "Codes", });
internal_static_com_envision_energy_connective_protobuf_generated_SubEventV2Customer_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_com_envision_energy_connective_protobuf_generated_SubEventV2Customer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_SubEventV2Customer_descriptor,
new String[] { "SubType", "Customerids", "Siteids", "Codes", });
internal_static_com_envision_energy_connective_protobuf_generated_EventStrReq_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_com_envision_energy_connective_protobuf_generated_EventStrReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_EventStrReq_descriptor,
new String[] { "EventJsonStr", });
internal_static_com_envision_energy_connective_protobuf_generated_EventV2StrReq_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_com_envision_energy_connective_protobuf_generated_EventV2StrReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_EventV2StrReq_descriptor,
new String[] { "EventJsonStr", });
internal_static_com_envision_energy_connective_protobuf_generated_SubAssetData_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_com_envision_energy_connective_protobuf_generated_SubAssetData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_SubAssetData_descriptor,
new String[] { "SubType", "Event", "Ancestors", "Types", });
internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeDetail_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeDetail_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeDetail_descriptor,
new String[] { "MdmId", "AttributesJson", "Ts", });
internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeRsp_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_AssetChangeRsp_descriptor,
new String[] { "Event", "Data", });
internal_static_com_envision_energy_connective_protobuf_generated_Redirect_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_com_envision_energy_connective_protobuf_generated_Redirect_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_envision_energy_connective_protobuf_generated_Redirect_descriptor,
new String[] { "Event", "Addr", "Port", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}