com.zepben.protobuf.dc.DiagramIdentifiedObject 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/dc/dc-data.proto
package com.zepben.protobuf.dc;
/**
*
* The set of leaf identified objects that the diagram service manages.
*
*
* Protobuf type {@code zepben.protobuf.dc.DiagramIdentifiedObject}
*/
public final class DiagramIdentifiedObject extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.dc.DiagramIdentifiedObject)
DiagramIdentifiedObjectOrBuilder {
private static final long serialVersionUID = 0L;
// Use DiagramIdentifiedObject.newBuilder() to construct.
private DiagramIdentifiedObject(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DiagramIdentifiedObject() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DiagramIdentifiedObject();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.dc.DcData.internal_static_zepben_protobuf_dc_DiagramIdentifiedObject_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.dc.DcData.internal_static_zepben_protobuf_dc_DiagramIdentifiedObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.dc.DiagramIdentifiedObject.class, com.zepben.protobuf.dc.DiagramIdentifiedObject.Builder.class);
}
private int identifiedObjectCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object identifiedObject_;
public enum IdentifiedObjectCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
DIAGRAM(1),
DIAGRAMOBJECT(2),
OTHER(999),
IDENTIFIEDOBJECT_NOT_SET(0);
private final int value;
private IdentifiedObjectCase(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 IdentifiedObjectCase valueOf(int value) {
return forNumber(value);
}
public static IdentifiedObjectCase forNumber(int value) {
switch (value) {
case 1: return DIAGRAM;
case 2: return DIAGRAMOBJECT;
case 999: return OTHER;
case 0: return IDENTIFIEDOBJECT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public IdentifiedObjectCase
getIdentifiedObjectCase() {
return IdentifiedObjectCase.forNumber(
identifiedObjectCase_);
}
public static final int DIAGRAM_FIELD_NUMBER = 1;
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram diagram = 1;
* @return Whether the diagram field is set.
*/
@java.lang.Override
public boolean hasDiagram() {
return identifiedObjectCase_ == 1;
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram diagram = 1;
* @return The diagram.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram getDiagram() {
if (identifiedObjectCase_ == 1) {
return (com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram) identifiedObject_;
}
return com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram.getDefaultInstance();
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram diagram = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramOrBuilder getDiagramOrBuilder() {
if (identifiedObjectCase_ == 1) {
return (com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram) identifiedObject_;
}
return com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram.getDefaultInstance();
}
public static final int DIAGRAMOBJECT_FIELD_NUMBER = 2;
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject diagramObject = 2;
* @return Whether the diagramObject field is set.
*/
@java.lang.Override
public boolean hasDiagramObject() {
return identifiedObjectCase_ == 2;
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject diagramObject = 2;
* @return The diagramObject.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject getDiagramObject() {
if (identifiedObjectCase_ == 2) {
return (com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject) identifiedObject_;
}
return com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject.getDefaultInstance();
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject diagramObject = 2;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObjectOrBuilder getDiagramObjectOrBuilder() {
if (identifiedObjectCase_ == 2) {
return (com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject) identifiedObject_;
}
return com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject.getDefaultInstance();
}
public static final int OTHER_FIELD_NUMBER = 999;
/**
* .google.protobuf.Any other = 999;
* @return Whether the other field is set.
*/
@java.lang.Override
public boolean hasOther() {
return identifiedObjectCase_ == 999;
}
/**
* .google.protobuf.Any other = 999;
* @return The other.
*/
@java.lang.Override
public com.google.protobuf.Any getOther() {
if (identifiedObjectCase_ == 999) {
return (com.google.protobuf.Any) identifiedObject_;
}
return com.google.protobuf.Any.getDefaultInstance();
}
/**
* .google.protobuf.Any other = 999;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getOtherOrBuilder() {
if (identifiedObjectCase_ == 999) {
return (com.google.protobuf.Any) identifiedObject_;
}
return com.google.protobuf.Any.getDefaultInstance();
}
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 (identifiedObjectCase_ == 1) {
output.writeMessage(1, (com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram) identifiedObject_);
}
if (identifiedObjectCase_ == 2) {
output.writeMessage(2, (com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject) identifiedObject_);
}
if (identifiedObjectCase_ == 999) {
output.writeMessage(999, (com.google.protobuf.Any) identifiedObject_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (identifiedObjectCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram) identifiedObject_);
}
if (identifiedObjectCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject) identifiedObject_);
}
if (identifiedObjectCase_ == 999) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(999, (com.google.protobuf.Any) identifiedObject_);
}
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.dc.DiagramIdentifiedObject)) {
return super.equals(obj);
}
com.zepben.protobuf.dc.DiagramIdentifiedObject other = (com.zepben.protobuf.dc.DiagramIdentifiedObject) obj;
if (!getIdentifiedObjectCase().equals(other.getIdentifiedObjectCase())) return false;
switch (identifiedObjectCase_) {
case 1:
if (!getDiagram()
.equals(other.getDiagram())) return false;
break;
case 2:
if (!getDiagramObject()
.equals(other.getDiagramObject())) return false;
break;
case 999:
if (!getOther()
.equals(other.getOther())) 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();
switch (identifiedObjectCase_) {
case 1:
hash = (37 * hash) + DIAGRAM_FIELD_NUMBER;
hash = (53 * hash) + getDiagram().hashCode();
break;
case 2:
hash = (37 * hash) + DIAGRAMOBJECT_FIELD_NUMBER;
hash = (53 * hash) + getDiagramObject().hashCode();
break;
case 999:
hash = (37 * hash) + OTHER_FIELD_NUMBER;
hash = (53 * hash) + getOther().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.dc.DiagramIdentifiedObject parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.dc.DiagramIdentifiedObject 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.dc.DiagramIdentifiedObject parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.dc.DiagramIdentifiedObject 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.dc.DiagramIdentifiedObject parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.dc.DiagramIdentifiedObject parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.dc.DiagramIdentifiedObject parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.dc.DiagramIdentifiedObject 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.dc.DiagramIdentifiedObject parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.zepben.protobuf.dc.DiagramIdentifiedObject 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.dc.DiagramIdentifiedObject parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.dc.DiagramIdentifiedObject 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.dc.DiagramIdentifiedObject 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;
}
/**
*
* The set of leaf identified objects that the diagram service manages.
*
*
* Protobuf type {@code zepben.protobuf.dc.DiagramIdentifiedObject}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.dc.DiagramIdentifiedObject)
com.zepben.protobuf.dc.DiagramIdentifiedObjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.dc.DcData.internal_static_zepben_protobuf_dc_DiagramIdentifiedObject_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.dc.DcData.internal_static_zepben_protobuf_dc_DiagramIdentifiedObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.dc.DiagramIdentifiedObject.class, com.zepben.protobuf.dc.DiagramIdentifiedObject.Builder.class);
}
// Construct using com.zepben.protobuf.dc.DiagramIdentifiedObject.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (diagramBuilder_ != null) {
diagramBuilder_.clear();
}
if (diagramObjectBuilder_ != null) {
diagramObjectBuilder_.clear();
}
if (otherBuilder_ != null) {
otherBuilder_.clear();
}
identifiedObjectCase_ = 0;
identifiedObject_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.dc.DcData.internal_static_zepben_protobuf_dc_DiagramIdentifiedObject_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.dc.DiagramIdentifiedObject getDefaultInstanceForType() {
return com.zepben.protobuf.dc.DiagramIdentifiedObject.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.dc.DiagramIdentifiedObject build() {
com.zepben.protobuf.dc.DiagramIdentifiedObject result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.dc.DiagramIdentifiedObject buildPartial() {
com.zepben.protobuf.dc.DiagramIdentifiedObject result = new com.zepben.protobuf.dc.DiagramIdentifiedObject(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.dc.DiagramIdentifiedObject result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(com.zepben.protobuf.dc.DiagramIdentifiedObject result) {
result.identifiedObjectCase_ = identifiedObjectCase_;
result.identifiedObject_ = this.identifiedObject_;
if (identifiedObjectCase_ == 1 &&
diagramBuilder_ != null) {
result.identifiedObject_ = diagramBuilder_.build();
}
if (identifiedObjectCase_ == 2 &&
diagramObjectBuilder_ != null) {
result.identifiedObject_ = diagramObjectBuilder_.build();
}
if (identifiedObjectCase_ == 999 &&
otherBuilder_ != null) {
result.identifiedObject_ = otherBuilder_.build();
}
}
@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.dc.DiagramIdentifiedObject) {
return mergeFrom((com.zepben.protobuf.dc.DiagramIdentifiedObject)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.dc.DiagramIdentifiedObject other) {
if (other == com.zepben.protobuf.dc.DiagramIdentifiedObject.getDefaultInstance()) return this;
switch (other.getIdentifiedObjectCase()) {
case DIAGRAM: {
mergeDiagram(other.getDiagram());
break;
}
case DIAGRAMOBJECT: {
mergeDiagramObject(other.getDiagramObject());
break;
}
case OTHER: {
mergeOther(other.getOther());
break;
}
case IDENTIFIEDOBJECT_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(
getDiagramFieldBuilder().getBuilder(),
extensionRegistry);
identifiedObjectCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getDiagramObjectFieldBuilder().getBuilder(),
extensionRegistry);
identifiedObjectCase_ = 2;
break;
} // case 18
case 7994: {
input.readMessage(
getOtherFieldBuilder().getBuilder(),
extensionRegistry);
identifiedObjectCase_ = 999;
break;
} // case 7994
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 identifiedObjectCase_ = 0;
private java.lang.Object identifiedObject_;
public IdentifiedObjectCase
getIdentifiedObjectCase() {
return IdentifiedObjectCase.forNumber(
identifiedObjectCase_);
}
public Builder clearIdentifiedObject() {
identifiedObjectCase_ = 0;
identifiedObject_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram, com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram.Builder, com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramOrBuilder> diagramBuilder_;
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram diagram = 1;
* @return Whether the diagram field is set.
*/
@java.lang.Override
public boolean hasDiagram() {
return identifiedObjectCase_ == 1;
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram diagram = 1;
* @return The diagram.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram getDiagram() {
if (diagramBuilder_ == null) {
if (identifiedObjectCase_ == 1) {
return (com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram) identifiedObject_;
}
return com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram.getDefaultInstance();
} else {
if (identifiedObjectCase_ == 1) {
return diagramBuilder_.getMessage();
}
return com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram.getDefaultInstance();
}
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram diagram = 1;
*/
public Builder setDiagram(com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram value) {
if (diagramBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifiedObject_ = value;
onChanged();
} else {
diagramBuilder_.setMessage(value);
}
identifiedObjectCase_ = 1;
return this;
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram diagram = 1;
*/
public Builder setDiagram(
com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram.Builder builderForValue) {
if (diagramBuilder_ == null) {
identifiedObject_ = builderForValue.build();
onChanged();
} else {
diagramBuilder_.setMessage(builderForValue.build());
}
identifiedObjectCase_ = 1;
return this;
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram diagram = 1;
*/
public Builder mergeDiagram(com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram value) {
if (diagramBuilder_ == null) {
if (identifiedObjectCase_ == 1 &&
identifiedObject_ != com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram.getDefaultInstance()) {
identifiedObject_ = com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram.newBuilder((com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram) identifiedObject_)
.mergeFrom(value).buildPartial();
} else {
identifiedObject_ = value;
}
onChanged();
} else {
if (identifiedObjectCase_ == 1) {
diagramBuilder_.mergeFrom(value);
} else {
diagramBuilder_.setMessage(value);
}
}
identifiedObjectCase_ = 1;
return this;
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram diagram = 1;
*/
public Builder clearDiagram() {
if (diagramBuilder_ == null) {
if (identifiedObjectCase_ == 1) {
identifiedObjectCase_ = 0;
identifiedObject_ = null;
onChanged();
}
} else {
if (identifiedObjectCase_ == 1) {
identifiedObjectCase_ = 0;
identifiedObject_ = null;
}
diagramBuilder_.clear();
}
return this;
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram diagram = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram.Builder getDiagramBuilder() {
return getDiagramFieldBuilder().getBuilder();
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram diagram = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramOrBuilder getDiagramOrBuilder() {
if ((identifiedObjectCase_ == 1) && (diagramBuilder_ != null)) {
return diagramBuilder_.getMessageOrBuilder();
} else {
if (identifiedObjectCase_ == 1) {
return (com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram) identifiedObject_;
}
return com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram.getDefaultInstance();
}
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram diagram = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram, com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram.Builder, com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramOrBuilder>
getDiagramFieldBuilder() {
if (diagramBuilder_ == null) {
if (!(identifiedObjectCase_ == 1)) {
identifiedObject_ = com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram.getDefaultInstance();
}
diagramBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram, com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram.Builder, com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramOrBuilder>(
(com.zepben.protobuf.cim.iec61970.base.diagramlayout.Diagram) identifiedObject_,
getParentForChildren(),
isClean());
identifiedObject_ = null;
}
identifiedObjectCase_ = 1;
onChanged();
return diagramBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject, com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject.Builder, com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObjectOrBuilder> diagramObjectBuilder_;
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject diagramObject = 2;
* @return Whether the diagramObject field is set.
*/
@java.lang.Override
public boolean hasDiagramObject() {
return identifiedObjectCase_ == 2;
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject diagramObject = 2;
* @return The diagramObject.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject getDiagramObject() {
if (diagramObjectBuilder_ == null) {
if (identifiedObjectCase_ == 2) {
return (com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject) identifiedObject_;
}
return com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject.getDefaultInstance();
} else {
if (identifiedObjectCase_ == 2) {
return diagramObjectBuilder_.getMessage();
}
return com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject.getDefaultInstance();
}
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject diagramObject = 2;
*/
public Builder setDiagramObject(com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject value) {
if (diagramObjectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifiedObject_ = value;
onChanged();
} else {
diagramObjectBuilder_.setMessage(value);
}
identifiedObjectCase_ = 2;
return this;
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject diagramObject = 2;
*/
public Builder setDiagramObject(
com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject.Builder builderForValue) {
if (diagramObjectBuilder_ == null) {
identifiedObject_ = builderForValue.build();
onChanged();
} else {
diagramObjectBuilder_.setMessage(builderForValue.build());
}
identifiedObjectCase_ = 2;
return this;
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject diagramObject = 2;
*/
public Builder mergeDiagramObject(com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject value) {
if (diagramObjectBuilder_ == null) {
if (identifiedObjectCase_ == 2 &&
identifiedObject_ != com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject.getDefaultInstance()) {
identifiedObject_ = com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject.newBuilder((com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject) identifiedObject_)
.mergeFrom(value).buildPartial();
} else {
identifiedObject_ = value;
}
onChanged();
} else {
if (identifiedObjectCase_ == 2) {
diagramObjectBuilder_.mergeFrom(value);
} else {
diagramObjectBuilder_.setMessage(value);
}
}
identifiedObjectCase_ = 2;
return this;
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject diagramObject = 2;
*/
public Builder clearDiagramObject() {
if (diagramObjectBuilder_ == null) {
if (identifiedObjectCase_ == 2) {
identifiedObjectCase_ = 0;
identifiedObject_ = null;
onChanged();
}
} else {
if (identifiedObjectCase_ == 2) {
identifiedObjectCase_ = 0;
identifiedObject_ = null;
}
diagramObjectBuilder_.clear();
}
return this;
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject diagramObject = 2;
*/
public com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject.Builder getDiagramObjectBuilder() {
return getDiagramObjectFieldBuilder().getBuilder();
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject diagramObject = 2;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObjectOrBuilder getDiagramObjectOrBuilder() {
if ((identifiedObjectCase_ == 2) && (diagramObjectBuilder_ != null)) {
return diagramObjectBuilder_.getMessageOrBuilder();
} else {
if (identifiedObjectCase_ == 2) {
return (com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject) identifiedObject_;
}
return com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject.getDefaultInstance();
}
}
/**
* .zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject diagramObject = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject, com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject.Builder, com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObjectOrBuilder>
getDiagramObjectFieldBuilder() {
if (diagramObjectBuilder_ == null) {
if (!(identifiedObjectCase_ == 2)) {
identifiedObject_ = com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject.getDefaultInstance();
}
diagramObjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject, com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject.Builder, com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObjectOrBuilder>(
(com.zepben.protobuf.cim.iec61970.base.diagramlayout.DiagramObject) identifiedObject_,
getParentForChildren(),
isClean());
identifiedObject_ = null;
}
identifiedObjectCase_ = 2;
onChanged();
return diagramObjectBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> otherBuilder_;
/**
* .google.protobuf.Any other = 999;
* @return Whether the other field is set.
*/
@java.lang.Override
public boolean hasOther() {
return identifiedObjectCase_ == 999;
}
/**
* .google.protobuf.Any other = 999;
* @return The other.
*/
@java.lang.Override
public com.google.protobuf.Any getOther() {
if (otherBuilder_ == null) {
if (identifiedObjectCase_ == 999) {
return (com.google.protobuf.Any) identifiedObject_;
}
return com.google.protobuf.Any.getDefaultInstance();
} else {
if (identifiedObjectCase_ == 999) {
return otherBuilder_.getMessage();
}
return com.google.protobuf.Any.getDefaultInstance();
}
}
/**
* .google.protobuf.Any other = 999;
*/
public Builder setOther(com.google.protobuf.Any value) {
if (otherBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifiedObject_ = value;
onChanged();
} else {
otherBuilder_.setMessage(value);
}
identifiedObjectCase_ = 999;
return this;
}
/**
* .google.protobuf.Any other = 999;
*/
public Builder setOther(
com.google.protobuf.Any.Builder builderForValue) {
if (otherBuilder_ == null) {
identifiedObject_ = builderForValue.build();
onChanged();
} else {
otherBuilder_.setMessage(builderForValue.build());
}
identifiedObjectCase_ = 999;
return this;
}
/**
* .google.protobuf.Any other = 999;
*/
public Builder mergeOther(com.google.protobuf.Any value) {
if (otherBuilder_ == null) {
if (identifiedObjectCase_ == 999 &&
identifiedObject_ != com.google.protobuf.Any.getDefaultInstance()) {
identifiedObject_ = com.google.protobuf.Any.newBuilder((com.google.protobuf.Any) identifiedObject_)
.mergeFrom(value).buildPartial();
} else {
identifiedObject_ = value;
}
onChanged();
} else {
if (identifiedObjectCase_ == 999) {
otherBuilder_.mergeFrom(value);
} else {
otherBuilder_.setMessage(value);
}
}
identifiedObjectCase_ = 999;
return this;
}
/**
* .google.protobuf.Any other = 999;
*/
public Builder clearOther() {
if (otherBuilder_ == null) {
if (identifiedObjectCase_ == 999) {
identifiedObjectCase_ = 0;
identifiedObject_ = null;
onChanged();
}
} else {
if (identifiedObjectCase_ == 999) {
identifiedObjectCase_ = 0;
identifiedObject_ = null;
}
otherBuilder_.clear();
}
return this;
}
/**
* .google.protobuf.Any other = 999;
*/
public com.google.protobuf.Any.Builder getOtherBuilder() {
return getOtherFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Any other = 999;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getOtherOrBuilder() {
if ((identifiedObjectCase_ == 999) && (otherBuilder_ != null)) {
return otherBuilder_.getMessageOrBuilder();
} else {
if (identifiedObjectCase_ == 999) {
return (com.google.protobuf.Any) identifiedObject_;
}
return com.google.protobuf.Any.getDefaultInstance();
}
}
/**
* .google.protobuf.Any other = 999;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getOtherFieldBuilder() {
if (otherBuilder_ == null) {
if (!(identifiedObjectCase_ == 999)) {
identifiedObject_ = com.google.protobuf.Any.getDefaultInstance();
}
otherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
(com.google.protobuf.Any) identifiedObject_,
getParentForChildren(),
isClean());
identifiedObject_ = null;
}
identifiedObjectCase_ = 999;
onChanged();
return otherBuilder_;
}
@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.dc.DiagramIdentifiedObject)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.dc.DiagramIdentifiedObject)
private static final com.zepben.protobuf.dc.DiagramIdentifiedObject DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.dc.DiagramIdentifiedObject();
}
public static com.zepben.protobuf.dc.DiagramIdentifiedObject getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DiagramIdentifiedObject 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.dc.DiagramIdentifiedObject getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}