All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zepben.protobuf.cc.CustomerIdentifiedObject Maven / Gradle / Ivy

There is a newer version: 0.32.0-SNAPSHOT2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: zepben/protobuf/cc/cc-data.proto

package com.zepben.protobuf.cc;

/**
 * 
 * The set of leaf identified objects that the customer service manages.
 * 
* * Protobuf type {@code zepben.protobuf.cc.CustomerIdentifiedObject} */ public final class CustomerIdentifiedObject extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.cc.CustomerIdentifiedObject) CustomerIdentifiedObjectOrBuilder { private static final long serialVersionUID = 0L; // Use CustomerIdentifiedObject.newBuilder() to construct. private CustomerIdentifiedObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomerIdentifiedObject() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CustomerIdentifiedObject(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cc.CcData.internal_static_zepben_protobuf_cc_CustomerIdentifiedObject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cc.CcData.internal_static_zepben_protobuf_cc_CustomerIdentifiedObject_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cc.CustomerIdentifiedObject.class, com.zepben.protobuf.cc.CustomerIdentifiedObject.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 { ORGANISATION(1), CUSTOMER(2), CUSTOMERAGREEMENT(3), PRICINGSTRUCTURE(4), TARIFF(5), 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 ORGANISATION; case 2: return CUSTOMER; case 3: return CUSTOMERAGREEMENT; case 4: return PRICINGSTRUCTURE; case 5: return TARIFF; 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 ORGANISATION_FIELD_NUMBER = 1; /** * .zepben.protobuf.cim.iec61968.common.Organisation organisation = 1; * @return Whether the organisation field is set. */ @java.lang.Override public boolean hasOrganisation() { return identifiedObjectCase_ == 1; } /** * .zepben.protobuf.cim.iec61968.common.Organisation organisation = 1; * @return The organisation. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.Organisation getOrganisation() { if (identifiedObjectCase_ == 1) { return (com.zepben.protobuf.cim.iec61968.common.Organisation) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.common.Organisation.getDefaultInstance(); } /** * .zepben.protobuf.cim.iec61968.common.Organisation organisation = 1; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.OrganisationOrBuilder getOrganisationOrBuilder() { if (identifiedObjectCase_ == 1) { return (com.zepben.protobuf.cim.iec61968.common.Organisation) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.common.Organisation.getDefaultInstance(); } public static final int CUSTOMER_FIELD_NUMBER = 2; /** * .zepben.protobuf.cim.iec61968.customers.Customer customer = 2; * @return Whether the customer field is set. */ @java.lang.Override public boolean hasCustomer() { return identifiedObjectCase_ == 2; } /** * .zepben.protobuf.cim.iec61968.customers.Customer customer = 2; * @return The customer. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.Customer getCustomer() { if (identifiedObjectCase_ == 2) { return (com.zepben.protobuf.cim.iec61968.customers.Customer) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.Customer.getDefaultInstance(); } /** * .zepben.protobuf.cim.iec61968.customers.Customer customer = 2; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.CustomerOrBuilder getCustomerOrBuilder() { if (identifiedObjectCase_ == 2) { return (com.zepben.protobuf.cim.iec61968.customers.Customer) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.Customer.getDefaultInstance(); } public static final int CUSTOMERAGREEMENT_FIELD_NUMBER = 3; /** * .zepben.protobuf.cim.iec61968.customers.CustomerAgreement customerAgreement = 3; * @return Whether the customerAgreement field is set. */ @java.lang.Override public boolean hasCustomerAgreement() { return identifiedObjectCase_ == 3; } /** * .zepben.protobuf.cim.iec61968.customers.CustomerAgreement customerAgreement = 3; * @return The customerAgreement. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement getCustomerAgreement() { if (identifiedObjectCase_ == 3) { return (com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.getDefaultInstance(); } /** * .zepben.protobuf.cim.iec61968.customers.CustomerAgreement customerAgreement = 3; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.CustomerAgreementOrBuilder getCustomerAgreementOrBuilder() { if (identifiedObjectCase_ == 3) { return (com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.getDefaultInstance(); } public static final int PRICINGSTRUCTURE_FIELD_NUMBER = 4; /** * .zepben.protobuf.cim.iec61968.customers.PricingStructure pricingStructure = 4; * @return Whether the pricingStructure field is set. */ @java.lang.Override public boolean hasPricingStructure() { return identifiedObjectCase_ == 4; } /** * .zepben.protobuf.cim.iec61968.customers.PricingStructure pricingStructure = 4; * @return The pricingStructure. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.PricingStructure getPricingStructure() { if (identifiedObjectCase_ == 4) { return (com.zepben.protobuf.cim.iec61968.customers.PricingStructure) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.PricingStructure.getDefaultInstance(); } /** * .zepben.protobuf.cim.iec61968.customers.PricingStructure pricingStructure = 4; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.PricingStructureOrBuilder getPricingStructureOrBuilder() { if (identifiedObjectCase_ == 4) { return (com.zepben.protobuf.cim.iec61968.customers.PricingStructure) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.PricingStructure.getDefaultInstance(); } public static final int TARIFF_FIELD_NUMBER = 5; /** * .zepben.protobuf.cim.iec61968.customers.Tariff tariff = 5; * @return Whether the tariff field is set. */ @java.lang.Override public boolean hasTariff() { return identifiedObjectCase_ == 5; } /** * .zepben.protobuf.cim.iec61968.customers.Tariff tariff = 5; * @return The tariff. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.Tariff getTariff() { if (identifiedObjectCase_ == 5) { return (com.zepben.protobuf.cim.iec61968.customers.Tariff) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.Tariff.getDefaultInstance(); } /** * .zepben.protobuf.cim.iec61968.customers.Tariff tariff = 5; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.TariffOrBuilder getTariffOrBuilder() { if (identifiedObjectCase_ == 5) { return (com.zepben.protobuf.cim.iec61968.customers.Tariff) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.Tariff.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.iec61968.common.Organisation) identifiedObject_); } if (identifiedObjectCase_ == 2) { output.writeMessage(2, (com.zepben.protobuf.cim.iec61968.customers.Customer) identifiedObject_); } if (identifiedObjectCase_ == 3) { output.writeMessage(3, (com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement) identifiedObject_); } if (identifiedObjectCase_ == 4) { output.writeMessage(4, (com.zepben.protobuf.cim.iec61968.customers.PricingStructure) identifiedObject_); } if (identifiedObjectCase_ == 5) { output.writeMessage(5, (com.zepben.protobuf.cim.iec61968.customers.Tariff) 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.iec61968.common.Organisation) identifiedObject_); } if (identifiedObjectCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.zepben.protobuf.cim.iec61968.customers.Customer) identifiedObject_); } if (identifiedObjectCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement) identifiedObject_); } if (identifiedObjectCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.zepben.protobuf.cim.iec61968.customers.PricingStructure) identifiedObject_); } if (identifiedObjectCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.zepben.protobuf.cim.iec61968.customers.Tariff) 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.cc.CustomerIdentifiedObject)) { return super.equals(obj); } com.zepben.protobuf.cc.CustomerIdentifiedObject other = (com.zepben.protobuf.cc.CustomerIdentifiedObject) obj; if (!getIdentifiedObjectCase().equals(other.getIdentifiedObjectCase())) return false; switch (identifiedObjectCase_) { case 1: if (!getOrganisation() .equals(other.getOrganisation())) return false; break; case 2: if (!getCustomer() .equals(other.getCustomer())) return false; break; case 3: if (!getCustomerAgreement() .equals(other.getCustomerAgreement())) return false; break; case 4: if (!getPricingStructure() .equals(other.getPricingStructure())) return false; break; case 5: if (!getTariff() .equals(other.getTariff())) 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) + ORGANISATION_FIELD_NUMBER; hash = (53 * hash) + getOrganisation().hashCode(); break; case 2: hash = (37 * hash) + CUSTOMER_FIELD_NUMBER; hash = (53 * hash) + getCustomer().hashCode(); break; case 3: hash = (37 * hash) + CUSTOMERAGREEMENT_FIELD_NUMBER; hash = (53 * hash) + getCustomerAgreement().hashCode(); break; case 4: hash = (37 * hash) + PRICINGSTRUCTURE_FIELD_NUMBER; hash = (53 * hash) + getPricingStructure().hashCode(); break; case 5: hash = (37 * hash) + TARIFF_FIELD_NUMBER; hash = (53 * hash) + getTariff().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.cc.CustomerIdentifiedObject parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cc.CustomerIdentifiedObject 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.cc.CustomerIdentifiedObject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cc.CustomerIdentifiedObject 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.cc.CustomerIdentifiedObject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cc.CustomerIdentifiedObject parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.zepben.protobuf.cc.CustomerIdentifiedObject parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.cc.CustomerIdentifiedObject 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.cc.CustomerIdentifiedObject parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.zepben.protobuf.cc.CustomerIdentifiedObject 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.cc.CustomerIdentifiedObject parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.cc.CustomerIdentifiedObject 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.cc.CustomerIdentifiedObject 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 customer service manages.
   * 
* * Protobuf type {@code zepben.protobuf.cc.CustomerIdentifiedObject} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.cc.CustomerIdentifiedObject) com.zepben.protobuf.cc.CustomerIdentifiedObjectOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cc.CcData.internal_static_zepben_protobuf_cc_CustomerIdentifiedObject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cc.CcData.internal_static_zepben_protobuf_cc_CustomerIdentifiedObject_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cc.CustomerIdentifiedObject.class, com.zepben.protobuf.cc.CustomerIdentifiedObject.Builder.class); } // Construct using com.zepben.protobuf.cc.CustomerIdentifiedObject.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (organisationBuilder_ != null) { organisationBuilder_.clear(); } if (customerBuilder_ != null) { customerBuilder_.clear(); } if (customerAgreementBuilder_ != null) { customerAgreementBuilder_.clear(); } if (pricingStructureBuilder_ != null) { pricingStructureBuilder_.clear(); } if (tariffBuilder_ != null) { tariffBuilder_.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.cc.CcData.internal_static_zepben_protobuf_cc_CustomerIdentifiedObject_descriptor; } @java.lang.Override public com.zepben.protobuf.cc.CustomerIdentifiedObject getDefaultInstanceForType() { return com.zepben.protobuf.cc.CustomerIdentifiedObject.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.cc.CustomerIdentifiedObject build() { com.zepben.protobuf.cc.CustomerIdentifiedObject result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.cc.CustomerIdentifiedObject buildPartial() { com.zepben.protobuf.cc.CustomerIdentifiedObject result = new com.zepben.protobuf.cc.CustomerIdentifiedObject(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.cc.CustomerIdentifiedObject result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.zepben.protobuf.cc.CustomerIdentifiedObject result) { result.identifiedObjectCase_ = identifiedObjectCase_; result.identifiedObject_ = this.identifiedObject_; if (identifiedObjectCase_ == 1 && organisationBuilder_ != null) { result.identifiedObject_ = organisationBuilder_.build(); } if (identifiedObjectCase_ == 2 && customerBuilder_ != null) { result.identifiedObject_ = customerBuilder_.build(); } if (identifiedObjectCase_ == 3 && customerAgreementBuilder_ != null) { result.identifiedObject_ = customerAgreementBuilder_.build(); } if (identifiedObjectCase_ == 4 && pricingStructureBuilder_ != null) { result.identifiedObject_ = pricingStructureBuilder_.build(); } if (identifiedObjectCase_ == 5 && tariffBuilder_ != null) { result.identifiedObject_ = tariffBuilder_.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.cc.CustomerIdentifiedObject) { return mergeFrom((com.zepben.protobuf.cc.CustomerIdentifiedObject)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.cc.CustomerIdentifiedObject other) { if (other == com.zepben.protobuf.cc.CustomerIdentifiedObject.getDefaultInstance()) return this; switch (other.getIdentifiedObjectCase()) { case ORGANISATION: { mergeOrganisation(other.getOrganisation()); break; } case CUSTOMER: { mergeCustomer(other.getCustomer()); break; } case CUSTOMERAGREEMENT: { mergeCustomerAgreement(other.getCustomerAgreement()); break; } case PRICINGSTRUCTURE: { mergePricingStructure(other.getPricingStructure()); break; } case TARIFF: { mergeTariff(other.getTariff()); 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( getOrganisationFieldBuilder().getBuilder(), extensionRegistry); identifiedObjectCase_ = 1; break; } // case 10 case 18: { input.readMessage( getCustomerFieldBuilder().getBuilder(), extensionRegistry); identifiedObjectCase_ = 2; break; } // case 18 case 26: { input.readMessage( getCustomerAgreementFieldBuilder().getBuilder(), extensionRegistry); identifiedObjectCase_ = 3; break; } // case 26 case 34: { input.readMessage( getPricingStructureFieldBuilder().getBuilder(), extensionRegistry); identifiedObjectCase_ = 4; break; } // case 34 case 42: { input.readMessage( getTariffFieldBuilder().getBuilder(), extensionRegistry); identifiedObjectCase_ = 5; break; } // case 42 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.iec61968.common.Organisation, com.zepben.protobuf.cim.iec61968.common.Organisation.Builder, com.zepben.protobuf.cim.iec61968.common.OrganisationOrBuilder> organisationBuilder_; /** * .zepben.protobuf.cim.iec61968.common.Organisation organisation = 1; * @return Whether the organisation field is set. */ @java.lang.Override public boolean hasOrganisation() { return identifiedObjectCase_ == 1; } /** * .zepben.protobuf.cim.iec61968.common.Organisation organisation = 1; * @return The organisation. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.Organisation getOrganisation() { if (organisationBuilder_ == null) { if (identifiedObjectCase_ == 1) { return (com.zepben.protobuf.cim.iec61968.common.Organisation) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.common.Organisation.getDefaultInstance(); } else { if (identifiedObjectCase_ == 1) { return organisationBuilder_.getMessage(); } return com.zepben.protobuf.cim.iec61968.common.Organisation.getDefaultInstance(); } } /** * .zepben.protobuf.cim.iec61968.common.Organisation organisation = 1; */ public Builder setOrganisation(com.zepben.protobuf.cim.iec61968.common.Organisation value) { if (organisationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } identifiedObject_ = value; onChanged(); } else { organisationBuilder_.setMessage(value); } identifiedObjectCase_ = 1; return this; } /** * .zepben.protobuf.cim.iec61968.common.Organisation organisation = 1; */ public Builder setOrganisation( com.zepben.protobuf.cim.iec61968.common.Organisation.Builder builderForValue) { if (organisationBuilder_ == null) { identifiedObject_ = builderForValue.build(); onChanged(); } else { organisationBuilder_.setMessage(builderForValue.build()); } identifiedObjectCase_ = 1; return this; } /** * .zepben.protobuf.cim.iec61968.common.Organisation organisation = 1; */ public Builder mergeOrganisation(com.zepben.protobuf.cim.iec61968.common.Organisation value) { if (organisationBuilder_ == null) { if (identifiedObjectCase_ == 1 && identifiedObject_ != com.zepben.protobuf.cim.iec61968.common.Organisation.getDefaultInstance()) { identifiedObject_ = com.zepben.protobuf.cim.iec61968.common.Organisation.newBuilder((com.zepben.protobuf.cim.iec61968.common.Organisation) identifiedObject_) .mergeFrom(value).buildPartial(); } else { identifiedObject_ = value; } onChanged(); } else { if (identifiedObjectCase_ == 1) { organisationBuilder_.mergeFrom(value); } else { organisationBuilder_.setMessage(value); } } identifiedObjectCase_ = 1; return this; } /** * .zepben.protobuf.cim.iec61968.common.Organisation organisation = 1; */ public Builder clearOrganisation() { if (organisationBuilder_ == null) { if (identifiedObjectCase_ == 1) { identifiedObjectCase_ = 0; identifiedObject_ = null; onChanged(); } } else { if (identifiedObjectCase_ == 1) { identifiedObjectCase_ = 0; identifiedObject_ = null; } organisationBuilder_.clear(); } return this; } /** * .zepben.protobuf.cim.iec61968.common.Organisation organisation = 1; */ public com.zepben.protobuf.cim.iec61968.common.Organisation.Builder getOrganisationBuilder() { return getOrganisationFieldBuilder().getBuilder(); } /** * .zepben.protobuf.cim.iec61968.common.Organisation organisation = 1; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.OrganisationOrBuilder getOrganisationOrBuilder() { if ((identifiedObjectCase_ == 1) && (organisationBuilder_ != null)) { return organisationBuilder_.getMessageOrBuilder(); } else { if (identifiedObjectCase_ == 1) { return (com.zepben.protobuf.cim.iec61968.common.Organisation) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.common.Organisation.getDefaultInstance(); } } /** * .zepben.protobuf.cim.iec61968.common.Organisation organisation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.Organisation, com.zepben.protobuf.cim.iec61968.common.Organisation.Builder, com.zepben.protobuf.cim.iec61968.common.OrganisationOrBuilder> getOrganisationFieldBuilder() { if (organisationBuilder_ == null) { if (!(identifiedObjectCase_ == 1)) { identifiedObject_ = com.zepben.protobuf.cim.iec61968.common.Organisation.getDefaultInstance(); } organisationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.Organisation, com.zepben.protobuf.cim.iec61968.common.Organisation.Builder, com.zepben.protobuf.cim.iec61968.common.OrganisationOrBuilder>( (com.zepben.protobuf.cim.iec61968.common.Organisation) identifiedObject_, getParentForChildren(), isClean()); identifiedObject_ = null; } identifiedObjectCase_ = 1; onChanged(); return organisationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.customers.Customer, com.zepben.protobuf.cim.iec61968.customers.Customer.Builder, com.zepben.protobuf.cim.iec61968.customers.CustomerOrBuilder> customerBuilder_; /** * .zepben.protobuf.cim.iec61968.customers.Customer customer = 2; * @return Whether the customer field is set. */ @java.lang.Override public boolean hasCustomer() { return identifiedObjectCase_ == 2; } /** * .zepben.protobuf.cim.iec61968.customers.Customer customer = 2; * @return The customer. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.Customer getCustomer() { if (customerBuilder_ == null) { if (identifiedObjectCase_ == 2) { return (com.zepben.protobuf.cim.iec61968.customers.Customer) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.Customer.getDefaultInstance(); } else { if (identifiedObjectCase_ == 2) { return customerBuilder_.getMessage(); } return com.zepben.protobuf.cim.iec61968.customers.Customer.getDefaultInstance(); } } /** * .zepben.protobuf.cim.iec61968.customers.Customer customer = 2; */ public Builder setCustomer(com.zepben.protobuf.cim.iec61968.customers.Customer value) { if (customerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } identifiedObject_ = value; onChanged(); } else { customerBuilder_.setMessage(value); } identifiedObjectCase_ = 2; return this; } /** * .zepben.protobuf.cim.iec61968.customers.Customer customer = 2; */ public Builder setCustomer( com.zepben.protobuf.cim.iec61968.customers.Customer.Builder builderForValue) { if (customerBuilder_ == null) { identifiedObject_ = builderForValue.build(); onChanged(); } else { customerBuilder_.setMessage(builderForValue.build()); } identifiedObjectCase_ = 2; return this; } /** * .zepben.protobuf.cim.iec61968.customers.Customer customer = 2; */ public Builder mergeCustomer(com.zepben.protobuf.cim.iec61968.customers.Customer value) { if (customerBuilder_ == null) { if (identifiedObjectCase_ == 2 && identifiedObject_ != com.zepben.protobuf.cim.iec61968.customers.Customer.getDefaultInstance()) { identifiedObject_ = com.zepben.protobuf.cim.iec61968.customers.Customer.newBuilder((com.zepben.protobuf.cim.iec61968.customers.Customer) identifiedObject_) .mergeFrom(value).buildPartial(); } else { identifiedObject_ = value; } onChanged(); } else { if (identifiedObjectCase_ == 2) { customerBuilder_.mergeFrom(value); } else { customerBuilder_.setMessage(value); } } identifiedObjectCase_ = 2; return this; } /** * .zepben.protobuf.cim.iec61968.customers.Customer customer = 2; */ public Builder clearCustomer() { if (customerBuilder_ == null) { if (identifiedObjectCase_ == 2) { identifiedObjectCase_ = 0; identifiedObject_ = null; onChanged(); } } else { if (identifiedObjectCase_ == 2) { identifiedObjectCase_ = 0; identifiedObject_ = null; } customerBuilder_.clear(); } return this; } /** * .zepben.protobuf.cim.iec61968.customers.Customer customer = 2; */ public com.zepben.protobuf.cim.iec61968.customers.Customer.Builder getCustomerBuilder() { return getCustomerFieldBuilder().getBuilder(); } /** * .zepben.protobuf.cim.iec61968.customers.Customer customer = 2; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.CustomerOrBuilder getCustomerOrBuilder() { if ((identifiedObjectCase_ == 2) && (customerBuilder_ != null)) { return customerBuilder_.getMessageOrBuilder(); } else { if (identifiedObjectCase_ == 2) { return (com.zepben.protobuf.cim.iec61968.customers.Customer) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.Customer.getDefaultInstance(); } } /** * .zepben.protobuf.cim.iec61968.customers.Customer customer = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.customers.Customer, com.zepben.protobuf.cim.iec61968.customers.Customer.Builder, com.zepben.protobuf.cim.iec61968.customers.CustomerOrBuilder> getCustomerFieldBuilder() { if (customerBuilder_ == null) { if (!(identifiedObjectCase_ == 2)) { identifiedObject_ = com.zepben.protobuf.cim.iec61968.customers.Customer.getDefaultInstance(); } customerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.customers.Customer, com.zepben.protobuf.cim.iec61968.customers.Customer.Builder, com.zepben.protobuf.cim.iec61968.customers.CustomerOrBuilder>( (com.zepben.protobuf.cim.iec61968.customers.Customer) identifiedObject_, getParentForChildren(), isClean()); identifiedObject_ = null; } identifiedObjectCase_ = 2; onChanged(); return customerBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement, com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.Builder, com.zepben.protobuf.cim.iec61968.customers.CustomerAgreementOrBuilder> customerAgreementBuilder_; /** * .zepben.protobuf.cim.iec61968.customers.CustomerAgreement customerAgreement = 3; * @return Whether the customerAgreement field is set. */ @java.lang.Override public boolean hasCustomerAgreement() { return identifiedObjectCase_ == 3; } /** * .zepben.protobuf.cim.iec61968.customers.CustomerAgreement customerAgreement = 3; * @return The customerAgreement. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement getCustomerAgreement() { if (customerAgreementBuilder_ == null) { if (identifiedObjectCase_ == 3) { return (com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.getDefaultInstance(); } else { if (identifiedObjectCase_ == 3) { return customerAgreementBuilder_.getMessage(); } return com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.getDefaultInstance(); } } /** * .zepben.protobuf.cim.iec61968.customers.CustomerAgreement customerAgreement = 3; */ public Builder setCustomerAgreement(com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement value) { if (customerAgreementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } identifiedObject_ = value; onChanged(); } else { customerAgreementBuilder_.setMessage(value); } identifiedObjectCase_ = 3; return this; } /** * .zepben.protobuf.cim.iec61968.customers.CustomerAgreement customerAgreement = 3; */ public Builder setCustomerAgreement( com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.Builder builderForValue) { if (customerAgreementBuilder_ == null) { identifiedObject_ = builderForValue.build(); onChanged(); } else { customerAgreementBuilder_.setMessage(builderForValue.build()); } identifiedObjectCase_ = 3; return this; } /** * .zepben.protobuf.cim.iec61968.customers.CustomerAgreement customerAgreement = 3; */ public Builder mergeCustomerAgreement(com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement value) { if (customerAgreementBuilder_ == null) { if (identifiedObjectCase_ == 3 && identifiedObject_ != com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.getDefaultInstance()) { identifiedObject_ = com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.newBuilder((com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement) identifiedObject_) .mergeFrom(value).buildPartial(); } else { identifiedObject_ = value; } onChanged(); } else { if (identifiedObjectCase_ == 3) { customerAgreementBuilder_.mergeFrom(value); } else { customerAgreementBuilder_.setMessage(value); } } identifiedObjectCase_ = 3; return this; } /** * .zepben.protobuf.cim.iec61968.customers.CustomerAgreement customerAgreement = 3; */ public Builder clearCustomerAgreement() { if (customerAgreementBuilder_ == null) { if (identifiedObjectCase_ == 3) { identifiedObjectCase_ = 0; identifiedObject_ = null; onChanged(); } } else { if (identifiedObjectCase_ == 3) { identifiedObjectCase_ = 0; identifiedObject_ = null; } customerAgreementBuilder_.clear(); } return this; } /** * .zepben.protobuf.cim.iec61968.customers.CustomerAgreement customerAgreement = 3; */ public com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.Builder getCustomerAgreementBuilder() { return getCustomerAgreementFieldBuilder().getBuilder(); } /** * .zepben.protobuf.cim.iec61968.customers.CustomerAgreement customerAgreement = 3; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.CustomerAgreementOrBuilder getCustomerAgreementOrBuilder() { if ((identifiedObjectCase_ == 3) && (customerAgreementBuilder_ != null)) { return customerAgreementBuilder_.getMessageOrBuilder(); } else { if (identifiedObjectCase_ == 3) { return (com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.getDefaultInstance(); } } /** * .zepben.protobuf.cim.iec61968.customers.CustomerAgreement customerAgreement = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement, com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.Builder, com.zepben.protobuf.cim.iec61968.customers.CustomerAgreementOrBuilder> getCustomerAgreementFieldBuilder() { if (customerAgreementBuilder_ == null) { if (!(identifiedObjectCase_ == 3)) { identifiedObject_ = com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.getDefaultInstance(); } customerAgreementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement, com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.Builder, com.zepben.protobuf.cim.iec61968.customers.CustomerAgreementOrBuilder>( (com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement) identifiedObject_, getParentForChildren(), isClean()); identifiedObject_ = null; } identifiedObjectCase_ = 3; onChanged(); return customerAgreementBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.customers.PricingStructure, com.zepben.protobuf.cim.iec61968.customers.PricingStructure.Builder, com.zepben.protobuf.cim.iec61968.customers.PricingStructureOrBuilder> pricingStructureBuilder_; /** * .zepben.protobuf.cim.iec61968.customers.PricingStructure pricingStructure = 4; * @return Whether the pricingStructure field is set. */ @java.lang.Override public boolean hasPricingStructure() { return identifiedObjectCase_ == 4; } /** * .zepben.protobuf.cim.iec61968.customers.PricingStructure pricingStructure = 4; * @return The pricingStructure. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.PricingStructure getPricingStructure() { if (pricingStructureBuilder_ == null) { if (identifiedObjectCase_ == 4) { return (com.zepben.protobuf.cim.iec61968.customers.PricingStructure) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.PricingStructure.getDefaultInstance(); } else { if (identifiedObjectCase_ == 4) { return pricingStructureBuilder_.getMessage(); } return com.zepben.protobuf.cim.iec61968.customers.PricingStructure.getDefaultInstance(); } } /** * .zepben.protobuf.cim.iec61968.customers.PricingStructure pricingStructure = 4; */ public Builder setPricingStructure(com.zepben.protobuf.cim.iec61968.customers.PricingStructure value) { if (pricingStructureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } identifiedObject_ = value; onChanged(); } else { pricingStructureBuilder_.setMessage(value); } identifiedObjectCase_ = 4; return this; } /** * .zepben.protobuf.cim.iec61968.customers.PricingStructure pricingStructure = 4; */ public Builder setPricingStructure( com.zepben.protobuf.cim.iec61968.customers.PricingStructure.Builder builderForValue) { if (pricingStructureBuilder_ == null) { identifiedObject_ = builderForValue.build(); onChanged(); } else { pricingStructureBuilder_.setMessage(builderForValue.build()); } identifiedObjectCase_ = 4; return this; } /** * .zepben.protobuf.cim.iec61968.customers.PricingStructure pricingStructure = 4; */ public Builder mergePricingStructure(com.zepben.protobuf.cim.iec61968.customers.PricingStructure value) { if (pricingStructureBuilder_ == null) { if (identifiedObjectCase_ == 4 && identifiedObject_ != com.zepben.protobuf.cim.iec61968.customers.PricingStructure.getDefaultInstance()) { identifiedObject_ = com.zepben.protobuf.cim.iec61968.customers.PricingStructure.newBuilder((com.zepben.protobuf.cim.iec61968.customers.PricingStructure) identifiedObject_) .mergeFrom(value).buildPartial(); } else { identifiedObject_ = value; } onChanged(); } else { if (identifiedObjectCase_ == 4) { pricingStructureBuilder_.mergeFrom(value); } else { pricingStructureBuilder_.setMessage(value); } } identifiedObjectCase_ = 4; return this; } /** * .zepben.protobuf.cim.iec61968.customers.PricingStructure pricingStructure = 4; */ public Builder clearPricingStructure() { if (pricingStructureBuilder_ == null) { if (identifiedObjectCase_ == 4) { identifiedObjectCase_ = 0; identifiedObject_ = null; onChanged(); } } else { if (identifiedObjectCase_ == 4) { identifiedObjectCase_ = 0; identifiedObject_ = null; } pricingStructureBuilder_.clear(); } return this; } /** * .zepben.protobuf.cim.iec61968.customers.PricingStructure pricingStructure = 4; */ public com.zepben.protobuf.cim.iec61968.customers.PricingStructure.Builder getPricingStructureBuilder() { return getPricingStructureFieldBuilder().getBuilder(); } /** * .zepben.protobuf.cim.iec61968.customers.PricingStructure pricingStructure = 4; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.PricingStructureOrBuilder getPricingStructureOrBuilder() { if ((identifiedObjectCase_ == 4) && (pricingStructureBuilder_ != null)) { return pricingStructureBuilder_.getMessageOrBuilder(); } else { if (identifiedObjectCase_ == 4) { return (com.zepben.protobuf.cim.iec61968.customers.PricingStructure) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.PricingStructure.getDefaultInstance(); } } /** * .zepben.protobuf.cim.iec61968.customers.PricingStructure pricingStructure = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.customers.PricingStructure, com.zepben.protobuf.cim.iec61968.customers.PricingStructure.Builder, com.zepben.protobuf.cim.iec61968.customers.PricingStructureOrBuilder> getPricingStructureFieldBuilder() { if (pricingStructureBuilder_ == null) { if (!(identifiedObjectCase_ == 4)) { identifiedObject_ = com.zepben.protobuf.cim.iec61968.customers.PricingStructure.getDefaultInstance(); } pricingStructureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.customers.PricingStructure, com.zepben.protobuf.cim.iec61968.customers.PricingStructure.Builder, com.zepben.protobuf.cim.iec61968.customers.PricingStructureOrBuilder>( (com.zepben.protobuf.cim.iec61968.customers.PricingStructure) identifiedObject_, getParentForChildren(), isClean()); identifiedObject_ = null; } identifiedObjectCase_ = 4; onChanged(); return pricingStructureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.customers.Tariff, com.zepben.protobuf.cim.iec61968.customers.Tariff.Builder, com.zepben.protobuf.cim.iec61968.customers.TariffOrBuilder> tariffBuilder_; /** * .zepben.protobuf.cim.iec61968.customers.Tariff tariff = 5; * @return Whether the tariff field is set. */ @java.lang.Override public boolean hasTariff() { return identifiedObjectCase_ == 5; } /** * .zepben.protobuf.cim.iec61968.customers.Tariff tariff = 5; * @return The tariff. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.Tariff getTariff() { if (tariffBuilder_ == null) { if (identifiedObjectCase_ == 5) { return (com.zepben.protobuf.cim.iec61968.customers.Tariff) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.Tariff.getDefaultInstance(); } else { if (identifiedObjectCase_ == 5) { return tariffBuilder_.getMessage(); } return com.zepben.protobuf.cim.iec61968.customers.Tariff.getDefaultInstance(); } } /** * .zepben.protobuf.cim.iec61968.customers.Tariff tariff = 5; */ public Builder setTariff(com.zepben.protobuf.cim.iec61968.customers.Tariff value) { if (tariffBuilder_ == null) { if (value == null) { throw new NullPointerException(); } identifiedObject_ = value; onChanged(); } else { tariffBuilder_.setMessage(value); } identifiedObjectCase_ = 5; return this; } /** * .zepben.protobuf.cim.iec61968.customers.Tariff tariff = 5; */ public Builder setTariff( com.zepben.protobuf.cim.iec61968.customers.Tariff.Builder builderForValue) { if (tariffBuilder_ == null) { identifiedObject_ = builderForValue.build(); onChanged(); } else { tariffBuilder_.setMessage(builderForValue.build()); } identifiedObjectCase_ = 5; return this; } /** * .zepben.protobuf.cim.iec61968.customers.Tariff tariff = 5; */ public Builder mergeTariff(com.zepben.protobuf.cim.iec61968.customers.Tariff value) { if (tariffBuilder_ == null) { if (identifiedObjectCase_ == 5 && identifiedObject_ != com.zepben.protobuf.cim.iec61968.customers.Tariff.getDefaultInstance()) { identifiedObject_ = com.zepben.protobuf.cim.iec61968.customers.Tariff.newBuilder((com.zepben.protobuf.cim.iec61968.customers.Tariff) identifiedObject_) .mergeFrom(value).buildPartial(); } else { identifiedObject_ = value; } onChanged(); } else { if (identifiedObjectCase_ == 5) { tariffBuilder_.mergeFrom(value); } else { tariffBuilder_.setMessage(value); } } identifiedObjectCase_ = 5; return this; } /** * .zepben.protobuf.cim.iec61968.customers.Tariff tariff = 5; */ public Builder clearTariff() { if (tariffBuilder_ == null) { if (identifiedObjectCase_ == 5) { identifiedObjectCase_ = 0; identifiedObject_ = null; onChanged(); } } else { if (identifiedObjectCase_ == 5) { identifiedObjectCase_ = 0; identifiedObject_ = null; } tariffBuilder_.clear(); } return this; } /** * .zepben.protobuf.cim.iec61968.customers.Tariff tariff = 5; */ public com.zepben.protobuf.cim.iec61968.customers.Tariff.Builder getTariffBuilder() { return getTariffFieldBuilder().getBuilder(); } /** * .zepben.protobuf.cim.iec61968.customers.Tariff tariff = 5; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.TariffOrBuilder getTariffOrBuilder() { if ((identifiedObjectCase_ == 5) && (tariffBuilder_ != null)) { return tariffBuilder_.getMessageOrBuilder(); } else { if (identifiedObjectCase_ == 5) { return (com.zepben.protobuf.cim.iec61968.customers.Tariff) identifiedObject_; } return com.zepben.protobuf.cim.iec61968.customers.Tariff.getDefaultInstance(); } } /** * .zepben.protobuf.cim.iec61968.customers.Tariff tariff = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.customers.Tariff, com.zepben.protobuf.cim.iec61968.customers.Tariff.Builder, com.zepben.protobuf.cim.iec61968.customers.TariffOrBuilder> getTariffFieldBuilder() { if (tariffBuilder_ == null) { if (!(identifiedObjectCase_ == 5)) { identifiedObject_ = com.zepben.protobuf.cim.iec61968.customers.Tariff.getDefaultInstance(); } tariffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.customers.Tariff, com.zepben.protobuf.cim.iec61968.customers.Tariff.Builder, com.zepben.protobuf.cim.iec61968.customers.TariffOrBuilder>( (com.zepben.protobuf.cim.iec61968.customers.Tariff) identifiedObject_, getParentForChildren(), isClean()); identifiedObject_ = null; } identifiedObjectCase_ = 5; onChanged(); return tariffBuilder_; } 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.cc.CustomerIdentifiedObject) } // @@protoc_insertion_point(class_scope:zepben.protobuf.cc.CustomerIdentifiedObject) private static final com.zepben.protobuf.cc.CustomerIdentifiedObject DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.cc.CustomerIdentifiedObject(); } public static com.zepben.protobuf.cc.CustomerIdentifiedObject getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomerIdentifiedObject 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.cc.CustomerIdentifiedObject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy