com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo 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/assetinfo/TransformerTankInfo.proto
package com.zepben.protobuf.cim.iec61968.assetinfo;
/**
*
**
* Set of transformer tank data, from an equipment library.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo}
*/
public final class TransformerTankInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo)
TransformerTankInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransformerTankInfo.newBuilder() to construct.
private TransformerTankInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransformerTankInfo() {
powerTransformerInfoMRID_ = "";
transformerEndInfoMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransformerTankInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_assetinfo_TransformerTankInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_assetinfo_TransformerTankInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo.class, com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo.Builder.class);
}
private int bitField0_;
public static final int AI_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61968.assets.AssetInfo ai_;
/**
*
**
* AssetInfo fields for this TransformerTankInfo
*
*
* .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);
}
/**
*
**
* AssetInfo fields for this TransformerTankInfo
*
*
* .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_;
}
/**
*
**
* AssetInfo fields for this TransformerTankInfo
*
*
* .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 POWERTRANSFORMERINFOMRID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object powerTransformerInfoMRID_ = "";
/**
*
**
* Power transformer data that this tank description is part of.
*
*
* string powerTransformerInfoMRID = 2;
* @return The powerTransformerInfoMRID.
*/
@java.lang.Override
public java.lang.String getPowerTransformerInfoMRID() {
java.lang.Object ref = powerTransformerInfoMRID_;
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();
powerTransformerInfoMRID_ = s;
return s;
}
}
/**
*
**
* Power transformer data that this tank description is part of.
*
*
* string powerTransformerInfoMRID = 2;
* @return The bytes for powerTransformerInfoMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPowerTransformerInfoMRIDBytes() {
java.lang.Object ref = powerTransformerInfoMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
powerTransformerInfoMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRANSFORMERENDINFOMRIDS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList transformerEndInfoMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
**
* Data for all the ends described by this transformer tank data.
*
*
* repeated string transformerEndInfoMRIDs = 3;
* @return A list containing the transformerEndInfoMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getTransformerEndInfoMRIDsList() {
return transformerEndInfoMRIDs_;
}
/**
*
**
* Data for all the ends described by this transformer tank data.
*
*
* repeated string transformerEndInfoMRIDs = 3;
* @return The count of transformerEndInfoMRIDs.
*/
public int getTransformerEndInfoMRIDsCount() {
return transformerEndInfoMRIDs_.size();
}
/**
*
**
* Data for all the ends described by this transformer tank data.
*
*
* repeated string transformerEndInfoMRIDs = 3;
* @param index The index of the element to return.
* @return The transformerEndInfoMRIDs at the given index.
*/
public java.lang.String getTransformerEndInfoMRIDs(int index) {
return transformerEndInfoMRIDs_.get(index);
}
/**
*
**
* Data for all the ends described by this transformer tank data.
*
*
* repeated string transformerEndInfoMRIDs = 3;
* @param index The index of the value to return.
* @return The bytes of the transformerEndInfoMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getTransformerEndInfoMRIDsBytes(int index) {
return transformerEndInfoMRIDs_.getByteString(index);
}
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 {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAi());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(powerTransformerInfoMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, powerTransformerInfoMRID_);
}
for (int i = 0; i < transformerEndInfoMRIDs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, transformerEndInfoMRIDs_.getRaw(i));
}
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(powerTransformerInfoMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, powerTransformerInfoMRID_);
}
{
int dataSize = 0;
for (int i = 0; i < transformerEndInfoMRIDs_.size(); i++) {
dataSize += computeStringSizeNoTag(transformerEndInfoMRIDs_.getRaw(i));
}
size += dataSize;
size += 1 * getTransformerEndInfoMRIDsList().size();
}
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.assetinfo.TransformerTankInfo)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo other = (com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo) obj;
if (hasAi() != other.hasAi()) return false;
if (hasAi()) {
if (!getAi()
.equals(other.getAi())) return false;
}
if (!getPowerTransformerInfoMRID()
.equals(other.getPowerTransformerInfoMRID())) return false;
if (!getTransformerEndInfoMRIDsList()
.equals(other.getTransformerEndInfoMRIDsList())) return false;
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) + POWERTRANSFORMERINFOMRID_FIELD_NUMBER;
hash = (53 * hash) + getPowerTransformerInfoMRID().hashCode();
if (getTransformerEndInfoMRIDsCount() > 0) {
hash = (37 * hash) + TRANSFORMERENDINFOMRIDS_FIELD_NUMBER;
hash = (53 * hash) + getTransformerEndInfoMRIDsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo 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.assetinfo.TransformerTankInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo 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.assetinfo.TransformerTankInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo 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.assetinfo.TransformerTankInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo 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.assetinfo.TransformerTankInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo 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.assetinfo.TransformerTankInfo 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.assetinfo.TransformerTankInfo 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.assetinfo.TransformerTankInfo 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;
}
/**
*
**
* Set of transformer tank data, from an equipment library.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo)
com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_assetinfo_TransformerTankInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_assetinfo_TransformerTankInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo.class, com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo.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;
}
powerTransformerInfoMRID_ = "";
transformerEndInfoMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_assetinfo_TransformerTankInfo_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo build() {
com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo buildPartial() {
com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo result = new com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo 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.powerTransformerInfoMRID_ = powerTransformerInfoMRID_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
transformerEndInfoMRIDs_.makeImmutable();
result.transformerEndInfoMRIDs_ = transformerEndInfoMRIDs_;
}
result.bitField0_ |= to_bitField0_;
}
@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.assetinfo.TransformerTankInfo) {
return mergeFrom((com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo other) {
if (other == com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo.getDefaultInstance()) return this;
if (other.hasAi()) {
mergeAi(other.getAi());
}
if (!other.getPowerTransformerInfoMRID().isEmpty()) {
powerTransformerInfoMRID_ = other.powerTransformerInfoMRID_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.transformerEndInfoMRIDs_.isEmpty()) {
if (transformerEndInfoMRIDs_.isEmpty()) {
transformerEndInfoMRIDs_ = other.transformerEndInfoMRIDs_;
bitField0_ |= 0x00000004;
} else {
ensureTransformerEndInfoMRIDsIsMutable();
transformerEndInfoMRIDs_.addAll(other.transformerEndInfoMRIDs_);
}
onChanged();
}
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: {
powerTransformerInfoMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureTransformerEndInfoMRIDsIsMutable();
transformerEndInfoMRIDs_.add(s);
break;
} // case 26
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 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_;
/**
*
**
* AssetInfo fields for this TransformerTankInfo
*
*
* .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1;
* @return Whether the ai field is set.
*/
public boolean hasAi() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* AssetInfo fields for this TransformerTankInfo
*
*
* .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();
}
}
/**
*
**
* AssetInfo fields for this TransformerTankInfo
*
*
* .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;
}
/**
*
**
* AssetInfo fields for this TransformerTankInfo
*
*
* .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;
}
/**
*
**
* AssetInfo fields for this TransformerTankInfo
*
*
* .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;
}
/**
*
**
* AssetInfo fields for this TransformerTankInfo
*
*
* .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;
}
/**
*
**
* AssetInfo fields for this TransformerTankInfo
*
*
* .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1;
*/
public com.zepben.protobuf.cim.iec61968.assets.AssetInfo.Builder getAiBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAiFieldBuilder().getBuilder();
}
/**
*
**
* AssetInfo fields for this TransformerTankInfo
*
*
* .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_;
}
}
/**
*
**
* AssetInfo fields for this TransformerTankInfo
*
*
* .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 powerTransformerInfoMRID_ = "";
/**
*
**
* Power transformer data that this tank description is part of.
*
*
* string powerTransformerInfoMRID = 2;
* @return The powerTransformerInfoMRID.
*/
public java.lang.String getPowerTransformerInfoMRID() {
java.lang.Object ref = powerTransformerInfoMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
powerTransformerInfoMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* Power transformer data that this tank description is part of.
*
*
* string powerTransformerInfoMRID = 2;
* @return The bytes for powerTransformerInfoMRID.
*/
public com.google.protobuf.ByteString
getPowerTransformerInfoMRIDBytes() {
java.lang.Object ref = powerTransformerInfoMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
powerTransformerInfoMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* Power transformer data that this tank description is part of.
*
*
* string powerTransformerInfoMRID = 2;
* @param value The powerTransformerInfoMRID to set.
* @return This builder for chaining.
*/
public Builder setPowerTransformerInfoMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
powerTransformerInfoMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Power transformer data that this tank description is part of.
*
*
* string powerTransformerInfoMRID = 2;
* @return This builder for chaining.
*/
public Builder clearPowerTransformerInfoMRID() {
powerTransformerInfoMRID_ = getDefaultInstance().getPowerTransformerInfoMRID();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* Power transformer data that this tank description is part of.
*
*
* string powerTransformerInfoMRID = 2;
* @param value The bytes for powerTransformerInfoMRID to set.
* @return This builder for chaining.
*/
public Builder setPowerTransformerInfoMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
powerTransformerInfoMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList transformerEndInfoMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureTransformerEndInfoMRIDsIsMutable() {
if (!transformerEndInfoMRIDs_.isModifiable()) {
transformerEndInfoMRIDs_ = new com.google.protobuf.LazyStringArrayList(transformerEndInfoMRIDs_);
}
bitField0_ |= 0x00000004;
}
/**
*
**
* Data for all the ends described by this transformer tank data.
*
*
* repeated string transformerEndInfoMRIDs = 3;
* @return A list containing the transformerEndInfoMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getTransformerEndInfoMRIDsList() {
transformerEndInfoMRIDs_.makeImmutable();
return transformerEndInfoMRIDs_;
}
/**
*
**
* Data for all the ends described by this transformer tank data.
*
*
* repeated string transformerEndInfoMRIDs = 3;
* @return The count of transformerEndInfoMRIDs.
*/
public int getTransformerEndInfoMRIDsCount() {
return transformerEndInfoMRIDs_.size();
}
/**
*
**
* Data for all the ends described by this transformer tank data.
*
*
* repeated string transformerEndInfoMRIDs = 3;
* @param index The index of the element to return.
* @return The transformerEndInfoMRIDs at the given index.
*/
public java.lang.String getTransformerEndInfoMRIDs(int index) {
return transformerEndInfoMRIDs_.get(index);
}
/**
*
**
* Data for all the ends described by this transformer tank data.
*
*
* repeated string transformerEndInfoMRIDs = 3;
* @param index The index of the value to return.
* @return The bytes of the transformerEndInfoMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getTransformerEndInfoMRIDsBytes(int index) {
return transformerEndInfoMRIDs_.getByteString(index);
}
/**
*
**
* Data for all the ends described by this transformer tank data.
*
*
* repeated string transformerEndInfoMRIDs = 3;
* @param index The index to set the value at.
* @param value The transformerEndInfoMRIDs to set.
* @return This builder for chaining.
*/
public Builder setTransformerEndInfoMRIDs(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTransformerEndInfoMRIDsIsMutable();
transformerEndInfoMRIDs_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Data for all the ends described by this transformer tank data.
*
*
* repeated string transformerEndInfoMRIDs = 3;
* @param value The transformerEndInfoMRIDs to add.
* @return This builder for chaining.
*/
public Builder addTransformerEndInfoMRIDs(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTransformerEndInfoMRIDsIsMutable();
transformerEndInfoMRIDs_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Data for all the ends described by this transformer tank data.
*
*
* repeated string transformerEndInfoMRIDs = 3;
* @param values The transformerEndInfoMRIDs to add.
* @return This builder for chaining.
*/
public Builder addAllTransformerEndInfoMRIDs(
java.lang.Iterable values) {
ensureTransformerEndInfoMRIDsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transformerEndInfoMRIDs_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Data for all the ends described by this transformer tank data.
*
*
* repeated string transformerEndInfoMRIDs = 3;
* @return This builder for chaining.
*/
public Builder clearTransformerEndInfoMRIDs() {
transformerEndInfoMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
*
**
* Data for all the ends described by this transformer tank data.
*
*
* repeated string transformerEndInfoMRIDs = 3;
* @param value The bytes of the transformerEndInfoMRIDs to add.
* @return This builder for chaining.
*/
public Builder addTransformerEndInfoMRIDsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureTransformerEndInfoMRIDsIsMutable();
transformerEndInfoMRIDs_.add(value);
bitField0_ |= 0x00000004;
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.assetinfo.TransformerTankInfo)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo)
private static final com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo();
}
public static com.zepben.protobuf.cim.iec61968.assetinfo.TransformerTankInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransformerTankInfo 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.assetinfo.TransformerTankInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}