com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evolve-grpc Show documentation
Show all versions of evolve-grpc Show documentation
Protobuf and gRPC definitions for the evolve platform
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: zepben/protobuf/cim/iec61968/infiec61968/infassetinfo/RelayInfo.proto
package com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo;
/**
*
**
* Relay Datasheet Information.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo}
*/
public final class RelayInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo)
RelayInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use RelayInfo.newBuilder() to construct.
private RelayInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RelayInfo() {
curveSetting_ = "";
recloseDelays_ = emptyDoubleList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RelayInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_infiec61968_infassetinfo_RelayInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_infiec61968_infassetinfo_RelayInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo.class, com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo.Builder.class);
}
private int bitField0_;
private int recloseFastCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object recloseFast_;
public enum RecloseFastCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
RECLOSEFASTNULL(4),
RECLOSEFASTSET(5),
RECLOSEFAST_NOT_SET(0);
private final int value;
private RecloseFastCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RecloseFastCase valueOf(int value) {
return forNumber(value);
}
public static RecloseFastCase forNumber(int value) {
switch (value) {
case 4: return RECLOSEFASTNULL;
case 5: return RECLOSEFASTSET;
case 0: return RECLOSEFAST_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public RecloseFastCase
getRecloseFastCase() {
return RecloseFastCase.forNumber(
recloseFastCase_);
}
public static final int AI_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61968.assets.AssetInfo ai_;
/**
*
**
* The AssetInfo fields for this RelayInfo.
*
*
* .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1;
* @return Whether the ai field is set.
*/
@java.lang.Override
public boolean hasAi() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The AssetInfo fields for this RelayInfo.
*
*
* .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1;
* @return The ai.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assets.AssetInfo getAi() {
return ai_ == null ? com.zepben.protobuf.cim.iec61968.assets.AssetInfo.getDefaultInstance() : ai_;
}
/**
*
**
* The AssetInfo fields for this RelayInfo.
*
*
* .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assets.AssetInfoOrBuilder getAiOrBuilder() {
return ai_ == null ? com.zepben.protobuf.cim.iec61968.assets.AssetInfo.getDefaultInstance() : ai_;
}
public static final int CURVESETTING_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object curveSetting_ = "";
/**
*
**
* The type of curve used for the Relay.
*
*
* string curveSetting = 2;
* @return The curveSetting.
*/
@java.lang.Override
public java.lang.String getCurveSetting() {
java.lang.Object ref = curveSetting_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
curveSetting_ = s;
return s;
}
}
/**
*
**
* The type of curve used for the Relay.
*
*
* string curveSetting = 2;
* @return The bytes for curveSetting.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCurveSettingBytes() {
java.lang.Object ref = curveSetting_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
curveSetting_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RECLOSEDELAYS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.DoubleList recloseDelays_ =
emptyDoubleList();
/**
*
**
* The reclose delays for this curve and relay type (in seconds). The index of the list is the reclose step, and the
* value is the overall delay time.
*
*
* repeated double recloseDelays = 3;
* @return A list containing the recloseDelays.
*/
@java.lang.Override
public java.util.List
getRecloseDelaysList() {
return recloseDelays_;
}
/**
*
**
* The reclose delays for this curve and relay type (in seconds). The index of the list is the reclose step, and the
* value is the overall delay time.
*
*
* repeated double recloseDelays = 3;
* @return The count of recloseDelays.
*/
public int getRecloseDelaysCount() {
return recloseDelays_.size();
}
/**
*
**
* The reclose delays for this curve and relay type (in seconds). The index of the list is the reclose step, and the
* value is the overall delay time.
*
*
* repeated double recloseDelays = 3;
* @param index The index of the element to return.
* @return The recloseDelays at the given index.
*/
public double getRecloseDelays(int index) {
return recloseDelays_.getDouble(index);
}
private int recloseDelaysMemoizedSerializedSize = -1;
public static final int RECLOSEFASTNULL_FIELD_NUMBER = 4;
/**
* .google.protobuf.NullValue recloseFastNull = 4;
* @return Whether the recloseFastNull field is set.
*/
public boolean hasRecloseFastNull() {
return recloseFastCase_ == 4;
}
/**
* .google.protobuf.NullValue recloseFastNull = 4;
* @return The enum numeric value on the wire for recloseFastNull.
*/
public int getRecloseFastNullValue() {
if (recloseFastCase_ == 4) {
return (java.lang.Integer) recloseFast_;
}
return 0;
}
/**
* .google.protobuf.NullValue recloseFastNull = 4;
* @return The recloseFastNull.
*/
public com.google.protobuf.NullValue getRecloseFastNull() {
if (recloseFastCase_ == 4) {
com.google.protobuf.NullValue result = com.google.protobuf.NullValue.forNumber(
(java.lang.Integer) recloseFast_);
return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
}
return com.google.protobuf.NullValue.NULL_VALUE;
}
public static final int RECLOSEFASTSET_FIELD_NUMBER = 5;
/**
* bool recloseFastSet = 5;
* @return Whether the recloseFastSet field is set.
*/
@java.lang.Override
public boolean hasRecloseFastSet() {
return recloseFastCase_ == 5;
}
/**
* bool recloseFastSet = 5;
* @return The recloseFastSet.
*/
@java.lang.Override
public boolean getRecloseFastSet() {
if (recloseFastCase_ == 5) {
return (java.lang.Boolean) recloseFast_;
}
return false;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAi());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(curveSetting_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, curveSetting_);
}
if (getRecloseDelaysList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(recloseDelaysMemoizedSerializedSize);
}
for (int i = 0; i < recloseDelays_.size(); i++) {
output.writeDoubleNoTag(recloseDelays_.getDouble(i));
}
if (recloseFastCase_ == 4) {
output.writeEnum(4, ((java.lang.Integer) recloseFast_));
}
if (recloseFastCase_ == 5) {
output.writeBool(
5, (boolean)((java.lang.Boolean) recloseFast_));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAi());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(curveSetting_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, curveSetting_);
}
{
int dataSize = 0;
dataSize = 8 * getRecloseDelaysList().size();
size += dataSize;
if (!getRecloseDelaysList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
recloseDelaysMemoizedSerializedSize = dataSize;
}
if (recloseFastCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, ((java.lang.Integer) recloseFast_));
}
if (recloseFastCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
5, (boolean)((java.lang.Boolean) recloseFast_));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo other = (com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo) obj;
if (hasAi() != other.hasAi()) return false;
if (hasAi()) {
if (!getAi()
.equals(other.getAi())) return false;
}
if (!getCurveSetting()
.equals(other.getCurveSetting())) return false;
if (!getRecloseDelaysList()
.equals(other.getRecloseDelaysList())) return false;
if (!getRecloseFastCase().equals(other.getRecloseFastCase())) return false;
switch (recloseFastCase_) {
case 4:
if (getRecloseFastNullValue()
!= other.getRecloseFastNullValue()) return false;
break;
case 5:
if (getRecloseFastSet()
!= other.getRecloseFastSet()) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasAi()) {
hash = (37 * hash) + AI_FIELD_NUMBER;
hash = (53 * hash) + getAi().hashCode();
}
hash = (37 * hash) + CURVESETTING_FIELD_NUMBER;
hash = (53 * hash) + getCurveSetting().hashCode();
if (getRecloseDelaysCount() > 0) {
hash = (37 * hash) + RECLOSEDELAYS_FIELD_NUMBER;
hash = (53 * hash) + getRecloseDelaysList().hashCode();
}
switch (recloseFastCase_) {
case 4:
hash = (37 * hash) + RECLOSEFASTNULL_FIELD_NUMBER;
hash = (53 * hash) + getRecloseFastNullValue();
break;
case 5:
hash = (37 * hash) + RECLOSEFASTSET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRecloseFastSet());
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* Relay Datasheet Information.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo)
com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_infiec61968_infassetinfo_RelayInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_infiec61968_infassetinfo_RelayInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo.class, com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAiFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
ai_ = null;
if (aiBuilder_ != null) {
aiBuilder_.dispose();
aiBuilder_ = null;
}
curveSetting_ = "";
recloseDelays_ = emptyDoubleList();
recloseFastCase_ = 0;
recloseFast_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_infiec61968_infassetinfo_RelayInfo_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo build() {
com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo buildPartial() {
com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo result = new com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ai_ = aiBuilder_ == null
? ai_
: aiBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.curveSetting_ = curveSetting_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
recloseDelays_.makeImmutable();
result.recloseDelays_ = recloseDelays_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo result) {
result.recloseFastCase_ = recloseFastCase_;
result.recloseFast_ = this.recloseFast_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo) {
return mergeFrom((com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo other) {
if (other == com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo.getDefaultInstance()) return this;
if (other.hasAi()) {
mergeAi(other.getAi());
}
if (!other.getCurveSetting().isEmpty()) {
curveSetting_ = other.curveSetting_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.recloseDelays_.isEmpty()) {
if (recloseDelays_.isEmpty()) {
recloseDelays_ = other.recloseDelays_;
recloseDelays_.makeImmutable();
bitField0_ |= 0x00000004;
} else {
ensureRecloseDelaysIsMutable();
recloseDelays_.addAll(other.recloseDelays_);
}
onChanged();
}
switch (other.getRecloseFastCase()) {
case RECLOSEFASTNULL: {
setRecloseFastNullValue(other.getRecloseFastNullValue());
break;
}
case RECLOSEFASTSET: {
setRecloseFastSet(other.getRecloseFastSet());
break;
}
case RECLOSEFAST_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getAiFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
curveSetting_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 25: {
double v = input.readDouble();
ensureRecloseDelaysIsMutable();
recloseDelays_.addDouble(v);
break;
} // case 25
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensureRecloseDelaysIsMutable(alloc / 8);
while (input.getBytesUntilLimit() > 0) {
recloseDelays_.addDouble(input.readDouble());
}
input.popLimit(limit);
break;
} // case 26
case 32: {
int rawValue = input.readEnum();
recloseFastCase_ = 4;
recloseFast_ = rawValue;
break;
} // case 32
case 40: {
recloseFast_ = input.readBool();
recloseFastCase_ = 5;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int recloseFastCase_ = 0;
private java.lang.Object recloseFast_;
public RecloseFastCase
getRecloseFastCase() {
return RecloseFastCase.forNumber(
recloseFastCase_);
}
public Builder clearRecloseFast() {
recloseFastCase_ = 0;
recloseFast_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.zepben.protobuf.cim.iec61968.assets.AssetInfo ai_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61968.assets.AssetInfo, com.zepben.protobuf.cim.iec61968.assets.AssetInfo.Builder, com.zepben.protobuf.cim.iec61968.assets.AssetInfoOrBuilder> aiBuilder_;
/**
*
**
* The AssetInfo fields for this RelayInfo.
*
*
* .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1;
* @return Whether the ai field is set.
*/
public boolean hasAi() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The AssetInfo fields for this RelayInfo.
*
*
* .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1;
* @return The ai.
*/
public com.zepben.protobuf.cim.iec61968.assets.AssetInfo getAi() {
if (aiBuilder_ == null) {
return ai_ == null ? com.zepben.protobuf.cim.iec61968.assets.AssetInfo.getDefaultInstance() : ai_;
} else {
return aiBuilder_.getMessage();
}
}
/**
*
**
* The AssetInfo fields for this RelayInfo.
*
*
* .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1;
*/
public Builder setAi(com.zepben.protobuf.cim.iec61968.assets.AssetInfo value) {
if (aiBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ai_ = value;
} else {
aiBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The AssetInfo fields for this RelayInfo.
*
*
* .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1;
*/
public Builder setAi(
com.zepben.protobuf.cim.iec61968.assets.AssetInfo.Builder builderForValue) {
if (aiBuilder_ == null) {
ai_ = builderForValue.build();
} else {
aiBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The AssetInfo fields for this RelayInfo.
*
*
* .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1;
*/
public Builder mergeAi(com.zepben.protobuf.cim.iec61968.assets.AssetInfo value) {
if (aiBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
ai_ != null &&
ai_ != com.zepben.protobuf.cim.iec61968.assets.AssetInfo.getDefaultInstance()) {
getAiBuilder().mergeFrom(value);
} else {
ai_ = value;
}
} else {
aiBuilder_.mergeFrom(value);
}
if (ai_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The AssetInfo fields for this RelayInfo.
*
*
* .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1;
*/
public Builder clearAi() {
bitField0_ = (bitField0_ & ~0x00000001);
ai_ = null;
if (aiBuilder_ != null) {
aiBuilder_.dispose();
aiBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The AssetInfo fields for this RelayInfo.
*
*
* .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1;
*/
public com.zepben.protobuf.cim.iec61968.assets.AssetInfo.Builder getAiBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAiFieldBuilder().getBuilder();
}
/**
*
**
* The AssetInfo fields for this RelayInfo.
*
*
* .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1;
*/
public com.zepben.protobuf.cim.iec61968.assets.AssetInfoOrBuilder getAiOrBuilder() {
if (aiBuilder_ != null) {
return aiBuilder_.getMessageOrBuilder();
} else {
return ai_ == null ?
com.zepben.protobuf.cim.iec61968.assets.AssetInfo.getDefaultInstance() : ai_;
}
}
/**
*
**
* The AssetInfo fields for this RelayInfo.
*
*
* .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61968.assets.AssetInfo, com.zepben.protobuf.cim.iec61968.assets.AssetInfo.Builder, com.zepben.protobuf.cim.iec61968.assets.AssetInfoOrBuilder>
getAiFieldBuilder() {
if (aiBuilder_ == null) {
aiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61968.assets.AssetInfo, com.zepben.protobuf.cim.iec61968.assets.AssetInfo.Builder, com.zepben.protobuf.cim.iec61968.assets.AssetInfoOrBuilder>(
getAi(),
getParentForChildren(),
isClean());
ai_ = null;
}
return aiBuilder_;
}
private java.lang.Object curveSetting_ = "";
/**
*
**
* The type of curve used for the Relay.
*
*
* string curveSetting = 2;
* @return The curveSetting.
*/
public java.lang.String getCurveSetting() {
java.lang.Object ref = curveSetting_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
curveSetting_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The type of curve used for the Relay.
*
*
* string curveSetting = 2;
* @return The bytes for curveSetting.
*/
public com.google.protobuf.ByteString
getCurveSettingBytes() {
java.lang.Object ref = curveSetting_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
curveSetting_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The type of curve used for the Relay.
*
*
* string curveSetting = 2;
* @param value The curveSetting to set.
* @return This builder for chaining.
*/
public Builder setCurveSetting(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
curveSetting_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The type of curve used for the Relay.
*
*
* string curveSetting = 2;
* @return This builder for chaining.
*/
public Builder clearCurveSetting() {
curveSetting_ = getDefaultInstance().getCurveSetting();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* The type of curve used for the Relay.
*
*
* string curveSetting = 2;
* @param value The bytes for curveSetting to set.
* @return This builder for chaining.
*/
public Builder setCurveSettingBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
curveSetting_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.Internal.DoubleList recloseDelays_ = emptyDoubleList();
private void ensureRecloseDelaysIsMutable() {
if (!recloseDelays_.isModifiable()) {
recloseDelays_ = makeMutableCopy(recloseDelays_);
}
bitField0_ |= 0x00000004;
}
private void ensureRecloseDelaysIsMutable(int capacity) {
if (!recloseDelays_.isModifiable()) {
recloseDelays_ = makeMutableCopy(recloseDelays_, capacity);
}
bitField0_ |= 0x00000004;
}
/**
*
**
* The reclose delays for this curve and relay type (in seconds). The index of the list is the reclose step, and the
* value is the overall delay time.
*
*
* repeated double recloseDelays = 3;
* @return A list containing the recloseDelays.
*/
public java.util.List
getRecloseDelaysList() {
recloseDelays_.makeImmutable();
return recloseDelays_;
}
/**
*
**
* The reclose delays for this curve and relay type (in seconds). The index of the list is the reclose step, and the
* value is the overall delay time.
*
*
* repeated double recloseDelays = 3;
* @return The count of recloseDelays.
*/
public int getRecloseDelaysCount() {
return recloseDelays_.size();
}
/**
*
**
* The reclose delays for this curve and relay type (in seconds). The index of the list is the reclose step, and the
* value is the overall delay time.
*
*
* repeated double recloseDelays = 3;
* @param index The index of the element to return.
* @return The recloseDelays at the given index.
*/
public double getRecloseDelays(int index) {
return recloseDelays_.getDouble(index);
}
/**
*
**
* The reclose delays for this curve and relay type (in seconds). The index of the list is the reclose step, and the
* value is the overall delay time.
*
*
* repeated double recloseDelays = 3;
* @param index The index to set the value at.
* @param value The recloseDelays to set.
* @return This builder for chaining.
*/
public Builder setRecloseDelays(
int index, double value) {
ensureRecloseDelaysIsMutable();
recloseDelays_.setDouble(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The reclose delays for this curve and relay type (in seconds). The index of the list is the reclose step, and the
* value is the overall delay time.
*
*
* repeated double recloseDelays = 3;
* @param value The recloseDelays to add.
* @return This builder for chaining.
*/
public Builder addRecloseDelays(double value) {
ensureRecloseDelaysIsMutable();
recloseDelays_.addDouble(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The reclose delays for this curve and relay type (in seconds). The index of the list is the reclose step, and the
* value is the overall delay time.
*
*
* repeated double recloseDelays = 3;
* @param values The recloseDelays to add.
* @return This builder for chaining.
*/
public Builder addAllRecloseDelays(
java.lang.Iterable extends java.lang.Double> values) {
ensureRecloseDelaysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, recloseDelays_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The reclose delays for this curve and relay type (in seconds). The index of the list is the reclose step, and the
* value is the overall delay time.
*
*
* repeated double recloseDelays = 3;
* @return This builder for chaining.
*/
public Builder clearRecloseDelays() {
recloseDelays_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* .google.protobuf.NullValue recloseFastNull = 4;
* @return Whether the recloseFastNull field is set.
*/
@java.lang.Override
public boolean hasRecloseFastNull() {
return recloseFastCase_ == 4;
}
/**
* .google.protobuf.NullValue recloseFastNull = 4;
* @return The enum numeric value on the wire for recloseFastNull.
*/
@java.lang.Override
public int getRecloseFastNullValue() {
if (recloseFastCase_ == 4) {
return ((java.lang.Integer) recloseFast_).intValue();
}
return 0;
}
/**
* .google.protobuf.NullValue recloseFastNull = 4;
* @param value The enum numeric value on the wire for recloseFastNull to set.
* @return This builder for chaining.
*/
public Builder setRecloseFastNullValue(int value) {
recloseFastCase_ = 4;
recloseFast_ = value;
onChanged();
return this;
}
/**
* .google.protobuf.NullValue recloseFastNull = 4;
* @return The recloseFastNull.
*/
@java.lang.Override
public com.google.protobuf.NullValue getRecloseFastNull() {
if (recloseFastCase_ == 4) {
com.google.protobuf.NullValue result = com.google.protobuf.NullValue.forNumber(
(java.lang.Integer) recloseFast_);
return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
}
return com.google.protobuf.NullValue.NULL_VALUE;
}
/**
* .google.protobuf.NullValue recloseFastNull = 4;
* @param value The recloseFastNull to set.
* @return This builder for chaining.
*/
public Builder setRecloseFastNull(com.google.protobuf.NullValue value) {
if (value == null) {
throw new NullPointerException();
}
recloseFastCase_ = 4;
recloseFast_ = value.getNumber();
onChanged();
return this;
}
/**
* .google.protobuf.NullValue recloseFastNull = 4;
* @return This builder for chaining.
*/
public Builder clearRecloseFastNull() {
if (recloseFastCase_ == 4) {
recloseFastCase_ = 0;
recloseFast_ = null;
onChanged();
}
return this;
}
/**
* bool recloseFastSet = 5;
* @return Whether the recloseFastSet field is set.
*/
public boolean hasRecloseFastSet() {
return recloseFastCase_ == 5;
}
/**
* bool recloseFastSet = 5;
* @return The recloseFastSet.
*/
public boolean getRecloseFastSet() {
if (recloseFastCase_ == 5) {
return (java.lang.Boolean) recloseFast_;
}
return false;
}
/**
* bool recloseFastSet = 5;
* @param value The recloseFastSet to set.
* @return This builder for chaining.
*/
public Builder setRecloseFastSet(boolean value) {
recloseFastCase_ = 5;
recloseFast_ = value;
onChanged();
return this;
}
/**
* bool recloseFastSet = 5;
* @return This builder for chaining.
*/
public Builder clearRecloseFastSet() {
if (recloseFastCase_ == 5) {
recloseFastCase_ = 0;
recloseFast_ = null;
onChanged();
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo)
private static final com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo();
}
public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RelayInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.RelayInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}