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

com.zepben.protobuf.cim.iec61968.customers.Customer 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/cim/iec61968/customers/Customer.proto

package com.zepben.protobuf.cim.iec61968.customers;

/**
 * 
 **
 * Organisation receiving services from service supplier.
 * 
* * Protobuf type {@code zepben.protobuf.cim.iec61968.customers.Customer} */ public final class Customer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61968.customers.Customer) CustomerOrBuilder { private static final long serialVersionUID = 0L; // Use Customer.newBuilder() to construct. private Customer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Customer() { kind_ = 0; customerAgreementMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); specialNeed_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Customer(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61968.customers.CustomerOuterClass.internal_static_zepben_protobuf_cim_iec61968_customers_Customer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61968.customers.CustomerOuterClass.internal_static_zepben_protobuf_cim_iec61968_customers_Customer_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61968.customers.Customer.class, com.zepben.protobuf.cim.iec61968.customers.Customer.Builder.class); } private int bitField0_; public static final int OR_FIELD_NUMBER = 1; private com.zepben.protobuf.cim.iec61968.common.OrganisationRole or_; /** *
   **
   * The OrganisationRole fields for this Customer
   * 
* * .zepben.protobuf.cim.iec61968.common.OrganisationRole or = 1; * @return Whether the or field is set. */ @java.lang.Override public boolean hasOr() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The OrganisationRole fields for this Customer
   * 
* * .zepben.protobuf.cim.iec61968.common.OrganisationRole or = 1; * @return The or. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.OrganisationRole getOr() { return or_ == null ? com.zepben.protobuf.cim.iec61968.common.OrganisationRole.getDefaultInstance() : or_; } /** *
   **
   * The OrganisationRole fields for this Customer
   * 
* * .zepben.protobuf.cim.iec61968.common.OrganisationRole or = 1; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.OrganisationRoleOrBuilder getOrOrBuilder() { return or_ == null ? com.zepben.protobuf.cim.iec61968.common.OrganisationRole.getDefaultInstance() : or_; } public static final int KIND_FIELD_NUMBER = 2; private int kind_ = 0; /** *
   **
   * Kind of customer.
   * 
* * .zepben.protobuf.cim.iec61968.customers.CustomerKind kind = 2; * @return The enum numeric value on the wire for kind. */ @java.lang.Override public int getKindValue() { return kind_; } /** *
   **
   * Kind of customer.
   * 
* * .zepben.protobuf.cim.iec61968.customers.CustomerKind kind = 2; * @return The kind. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.CustomerKind getKind() { com.zepben.protobuf.cim.iec61968.customers.CustomerKind result = com.zepben.protobuf.cim.iec61968.customers.CustomerKind.forNumber(kind_); return result == null ? com.zepben.protobuf.cim.iec61968.customers.CustomerKind.UNRECOGNIZED : result; } public static final int CUSTOMERAGREEMENTMRIDS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList customerAgreementMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   **
   * All agreements of this customer.
   * 
* * repeated string customerAgreementMRIDs = 3; * @return A list containing the customerAgreementMRIDs. */ public com.google.protobuf.ProtocolStringList getCustomerAgreementMRIDsList() { return customerAgreementMRIDs_; } /** *
   **
   * All agreements of this customer.
   * 
* * repeated string customerAgreementMRIDs = 3; * @return The count of customerAgreementMRIDs. */ public int getCustomerAgreementMRIDsCount() { return customerAgreementMRIDs_.size(); } /** *
   **
   * All agreements of this customer.
   * 
* * repeated string customerAgreementMRIDs = 3; * @param index The index of the element to return. * @return The customerAgreementMRIDs at the given index. */ public java.lang.String getCustomerAgreementMRIDs(int index) { return customerAgreementMRIDs_.get(index); } /** *
   **
   * All agreements of this customer.
   * 
* * repeated string customerAgreementMRIDs = 3; * @param index The index of the value to return. * @return The bytes of the customerAgreementMRIDs at the given index. */ public com.google.protobuf.ByteString getCustomerAgreementMRIDsBytes(int index) { return customerAgreementMRIDs_.getByteString(index); } public static final int NUMENDDEVICES_FIELD_NUMBER = 4; private int numEndDevices_ = 0; /** *
   **
   * Count of the EndDevice's that are associated with this Customer
   * 
* * int32 numEndDevices = 4; * @return The numEndDevices. */ @java.lang.Override public int getNumEndDevices() { return numEndDevices_; } public static final int SPECIALNEED_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object specialNeed_ = ""; /** *
   **
   * A special service need such as life support, hospitals, etc.
   * 
* * string specialNeed = 5; * @return The specialNeed. */ @java.lang.Override public java.lang.String getSpecialNeed() { java.lang.Object ref = specialNeed_; 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(); specialNeed_ = s; return s; } } /** *
   **
   * A special service need such as life support, hospitals, etc.
   * 
* * string specialNeed = 5; * @return The bytes for specialNeed. */ @java.lang.Override public com.google.protobuf.ByteString getSpecialNeedBytes() { java.lang.Object ref = specialNeed_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); specialNeed_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, getOr()); } if (kind_ != com.zepben.protobuf.cim.iec61968.customers.CustomerKind.UNKNOWN.getNumber()) { output.writeEnum(2, kind_); } for (int i = 0; i < customerAgreementMRIDs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, customerAgreementMRIDs_.getRaw(i)); } if (numEndDevices_ != 0) { output.writeInt32(4, numEndDevices_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specialNeed_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, specialNeed_); } 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, getOr()); } if (kind_ != com.zepben.protobuf.cim.iec61968.customers.CustomerKind.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, kind_); } { int dataSize = 0; for (int i = 0; i < customerAgreementMRIDs_.size(); i++) { dataSize += computeStringSizeNoTag(customerAgreementMRIDs_.getRaw(i)); } size += dataSize; size += 1 * getCustomerAgreementMRIDsList().size(); } if (numEndDevices_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, numEndDevices_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specialNeed_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, specialNeed_); } 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.customers.Customer)) { return super.equals(obj); } com.zepben.protobuf.cim.iec61968.customers.Customer other = (com.zepben.protobuf.cim.iec61968.customers.Customer) obj; if (hasOr() != other.hasOr()) return false; if (hasOr()) { if (!getOr() .equals(other.getOr())) return false; } if (kind_ != other.kind_) return false; if (!getCustomerAgreementMRIDsList() .equals(other.getCustomerAgreementMRIDsList())) return false; if (getNumEndDevices() != other.getNumEndDevices()) return false; if (!getSpecialNeed() .equals(other.getSpecialNeed())) 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 (hasOr()) { hash = (37 * hash) + OR_FIELD_NUMBER; hash = (53 * hash) + getOr().hashCode(); } hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + kind_; if (getCustomerAgreementMRIDsCount() > 0) { hash = (37 * hash) + CUSTOMERAGREEMENTMRIDS_FIELD_NUMBER; hash = (53 * hash) + getCustomerAgreementMRIDsList().hashCode(); } hash = (37 * hash) + NUMENDDEVICES_FIELD_NUMBER; hash = (53 * hash) + getNumEndDevices(); hash = (37 * hash) + SPECIALNEED_FIELD_NUMBER; hash = (53 * hash) + getSpecialNeed().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.cim.iec61968.customers.Customer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.customers.Customer 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.customers.Customer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.customers.Customer 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.customers.Customer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.customers.Customer 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.customers.Customer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.cim.iec61968.customers.Customer 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.customers.Customer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.zepben.protobuf.cim.iec61968.customers.Customer 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.customers.Customer 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.customers.Customer 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.customers.Customer 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; } /** *
   **
   * Organisation receiving services from service supplier.
   * 
* * Protobuf type {@code zepben.protobuf.cim.iec61968.customers.Customer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61968.customers.Customer) com.zepben.protobuf.cim.iec61968.customers.CustomerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61968.customers.CustomerOuterClass.internal_static_zepben_protobuf_cim_iec61968_customers_Customer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61968.customers.CustomerOuterClass.internal_static_zepben_protobuf_cim_iec61968_customers_Customer_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61968.customers.Customer.class, com.zepben.protobuf.cim.iec61968.customers.Customer.Builder.class); } // Construct using com.zepben.protobuf.cim.iec61968.customers.Customer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOrFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; or_ = null; if (orBuilder_ != null) { orBuilder_.dispose(); orBuilder_ = null; } kind_ = 0; customerAgreementMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); numEndDevices_ = 0; specialNeed_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.cim.iec61968.customers.CustomerOuterClass.internal_static_zepben_protobuf_cim_iec61968_customers_Customer_descriptor; } @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.Customer getDefaultInstanceForType() { return com.zepben.protobuf.cim.iec61968.customers.Customer.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.Customer build() { com.zepben.protobuf.cim.iec61968.customers.Customer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.Customer buildPartial() { com.zepben.protobuf.cim.iec61968.customers.Customer result = new com.zepben.protobuf.cim.iec61968.customers.Customer(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.cim.iec61968.customers.Customer result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.or_ = orBuilder_ == null ? or_ : orBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.kind_ = kind_; } if (((from_bitField0_ & 0x00000004) != 0)) { customerAgreementMRIDs_.makeImmutable(); result.customerAgreementMRIDs_ = customerAgreementMRIDs_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.numEndDevices_ = numEndDevices_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.specialNeed_ = specialNeed_; } 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.customers.Customer) { return mergeFrom((com.zepben.protobuf.cim.iec61968.customers.Customer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.cim.iec61968.customers.Customer other) { if (other == com.zepben.protobuf.cim.iec61968.customers.Customer.getDefaultInstance()) return this; if (other.hasOr()) { mergeOr(other.getOr()); } if (other.kind_ != 0) { setKindValue(other.getKindValue()); } if (!other.customerAgreementMRIDs_.isEmpty()) { if (customerAgreementMRIDs_.isEmpty()) { customerAgreementMRIDs_ = other.customerAgreementMRIDs_; bitField0_ |= 0x00000004; } else { ensureCustomerAgreementMRIDsIsMutable(); customerAgreementMRIDs_.addAll(other.customerAgreementMRIDs_); } onChanged(); } if (other.getNumEndDevices() != 0) { setNumEndDevices(other.getNumEndDevices()); } if (!other.getSpecialNeed().isEmpty()) { specialNeed_ = other.specialNeed_; bitField0_ |= 0x00000010; 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( getOrFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { kind_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureCustomerAgreementMRIDsIsMutable(); customerAgreementMRIDs_.add(s); break; } // case 26 case 32: { numEndDevices_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { specialNeed_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 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.common.OrganisationRole or_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.OrganisationRole, com.zepben.protobuf.cim.iec61968.common.OrganisationRole.Builder, com.zepben.protobuf.cim.iec61968.common.OrganisationRoleOrBuilder> orBuilder_; /** *
     **
     * The OrganisationRole fields for this Customer
     * 
* * .zepben.protobuf.cim.iec61968.common.OrganisationRole or = 1; * @return Whether the or field is set. */ public boolean hasOr() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The OrganisationRole fields for this Customer
     * 
* * .zepben.protobuf.cim.iec61968.common.OrganisationRole or = 1; * @return The or. */ public com.zepben.protobuf.cim.iec61968.common.OrganisationRole getOr() { if (orBuilder_ == null) { return or_ == null ? com.zepben.protobuf.cim.iec61968.common.OrganisationRole.getDefaultInstance() : or_; } else { return orBuilder_.getMessage(); } } /** *
     **
     * The OrganisationRole fields for this Customer
     * 
* * .zepben.protobuf.cim.iec61968.common.OrganisationRole or = 1; */ public Builder setOr(com.zepben.protobuf.cim.iec61968.common.OrganisationRole value) { if (orBuilder_ == null) { if (value == null) { throw new NullPointerException(); } or_ = value; } else { orBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The OrganisationRole fields for this Customer
     * 
* * .zepben.protobuf.cim.iec61968.common.OrganisationRole or = 1; */ public Builder setOr( com.zepben.protobuf.cim.iec61968.common.OrganisationRole.Builder builderForValue) { if (orBuilder_ == null) { or_ = builderForValue.build(); } else { orBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The OrganisationRole fields for this Customer
     * 
* * .zepben.protobuf.cim.iec61968.common.OrganisationRole or = 1; */ public Builder mergeOr(com.zepben.protobuf.cim.iec61968.common.OrganisationRole value) { if (orBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && or_ != null && or_ != com.zepben.protobuf.cim.iec61968.common.OrganisationRole.getDefaultInstance()) { getOrBuilder().mergeFrom(value); } else { or_ = value; } } else { orBuilder_.mergeFrom(value); } if (or_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The OrganisationRole fields for this Customer
     * 
* * .zepben.protobuf.cim.iec61968.common.OrganisationRole or = 1; */ public Builder clearOr() { bitField0_ = (bitField0_ & ~0x00000001); or_ = null; if (orBuilder_ != null) { orBuilder_.dispose(); orBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The OrganisationRole fields for this Customer
     * 
* * .zepben.protobuf.cim.iec61968.common.OrganisationRole or = 1; */ public com.zepben.protobuf.cim.iec61968.common.OrganisationRole.Builder getOrBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOrFieldBuilder().getBuilder(); } /** *
     **
     * The OrganisationRole fields for this Customer
     * 
* * .zepben.protobuf.cim.iec61968.common.OrganisationRole or = 1; */ public com.zepben.protobuf.cim.iec61968.common.OrganisationRoleOrBuilder getOrOrBuilder() { if (orBuilder_ != null) { return orBuilder_.getMessageOrBuilder(); } else { return or_ == null ? com.zepben.protobuf.cim.iec61968.common.OrganisationRole.getDefaultInstance() : or_; } } /** *
     **
     * The OrganisationRole fields for this Customer
     * 
* * .zepben.protobuf.cim.iec61968.common.OrganisationRole or = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.OrganisationRole, com.zepben.protobuf.cim.iec61968.common.OrganisationRole.Builder, com.zepben.protobuf.cim.iec61968.common.OrganisationRoleOrBuilder> getOrFieldBuilder() { if (orBuilder_ == null) { orBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.OrganisationRole, com.zepben.protobuf.cim.iec61968.common.OrganisationRole.Builder, com.zepben.protobuf.cim.iec61968.common.OrganisationRoleOrBuilder>( getOr(), getParentForChildren(), isClean()); or_ = null; } return orBuilder_; } private int kind_ = 0; /** *
     **
     * Kind of customer.
     * 
* * .zepben.protobuf.cim.iec61968.customers.CustomerKind kind = 2; * @return The enum numeric value on the wire for kind. */ @java.lang.Override public int getKindValue() { return kind_; } /** *
     **
     * Kind of customer.
     * 
* * .zepben.protobuf.cim.iec61968.customers.CustomerKind kind = 2; * @param value The enum numeric value on the wire for kind to set. * @return This builder for chaining. */ public Builder setKindValue(int value) { kind_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * Kind of customer.
     * 
* * .zepben.protobuf.cim.iec61968.customers.CustomerKind kind = 2; * @return The kind. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.CustomerKind getKind() { com.zepben.protobuf.cim.iec61968.customers.CustomerKind result = com.zepben.protobuf.cim.iec61968.customers.CustomerKind.forNumber(kind_); return result == null ? com.zepben.protobuf.cim.iec61968.customers.CustomerKind.UNRECOGNIZED : result; } /** *
     **
     * Kind of customer.
     * 
* * .zepben.protobuf.cim.iec61968.customers.CustomerKind kind = 2; * @param value The kind to set. * @return This builder for chaining. */ public Builder setKind(com.zepben.protobuf.cim.iec61968.customers.CustomerKind value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; kind_ = value.getNumber(); onChanged(); return this; } /** *
     **
     * Kind of customer.
     * 
* * .zepben.protobuf.cim.iec61968.customers.CustomerKind kind = 2; * @return This builder for chaining. */ public Builder clearKind() { bitField0_ = (bitField0_ & ~0x00000002); kind_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList customerAgreementMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureCustomerAgreementMRIDsIsMutable() { if (!customerAgreementMRIDs_.isModifiable()) { customerAgreementMRIDs_ = new com.google.protobuf.LazyStringArrayList(customerAgreementMRIDs_); } bitField0_ |= 0x00000004; } /** *
     **
     * All agreements of this customer.
     * 
* * repeated string customerAgreementMRIDs = 3; * @return A list containing the customerAgreementMRIDs. */ public com.google.protobuf.ProtocolStringList getCustomerAgreementMRIDsList() { customerAgreementMRIDs_.makeImmutable(); return customerAgreementMRIDs_; } /** *
     **
     * All agreements of this customer.
     * 
* * repeated string customerAgreementMRIDs = 3; * @return The count of customerAgreementMRIDs. */ public int getCustomerAgreementMRIDsCount() { return customerAgreementMRIDs_.size(); } /** *
     **
     * All agreements of this customer.
     * 
* * repeated string customerAgreementMRIDs = 3; * @param index The index of the element to return. * @return The customerAgreementMRIDs at the given index. */ public java.lang.String getCustomerAgreementMRIDs(int index) { return customerAgreementMRIDs_.get(index); } /** *
     **
     * All agreements of this customer.
     * 
* * repeated string customerAgreementMRIDs = 3; * @param index The index of the value to return. * @return The bytes of the customerAgreementMRIDs at the given index. */ public com.google.protobuf.ByteString getCustomerAgreementMRIDsBytes(int index) { return customerAgreementMRIDs_.getByteString(index); } /** *
     **
     * All agreements of this customer.
     * 
* * repeated string customerAgreementMRIDs = 3; * @param index The index to set the value at. * @param value The customerAgreementMRIDs to set. * @return This builder for chaining. */ public Builder setCustomerAgreementMRIDs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCustomerAgreementMRIDsIsMutable(); customerAgreementMRIDs_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * All agreements of this customer.
     * 
* * repeated string customerAgreementMRIDs = 3; * @param value The customerAgreementMRIDs to add. * @return This builder for chaining. */ public Builder addCustomerAgreementMRIDs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCustomerAgreementMRIDsIsMutable(); customerAgreementMRIDs_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * All agreements of this customer.
     * 
* * repeated string customerAgreementMRIDs = 3; * @param values The customerAgreementMRIDs to add. * @return This builder for chaining. */ public Builder addAllCustomerAgreementMRIDs( java.lang.Iterable values) { ensureCustomerAgreementMRIDsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, customerAgreementMRIDs_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * All agreements of this customer.
     * 
* * repeated string customerAgreementMRIDs = 3; * @return This builder for chaining. */ public Builder clearCustomerAgreementMRIDs() { customerAgreementMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** *
     **
     * All agreements of this customer.
     * 
* * repeated string customerAgreementMRIDs = 3; * @param value The bytes of the customerAgreementMRIDs to add. * @return This builder for chaining. */ public Builder addCustomerAgreementMRIDsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCustomerAgreementMRIDsIsMutable(); customerAgreementMRIDs_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private int numEndDevices_ ; /** *
     **
     * Count of the EndDevice's that are associated with this Customer
     * 
* * int32 numEndDevices = 4; * @return The numEndDevices. */ @java.lang.Override public int getNumEndDevices() { return numEndDevices_; } /** *
     **
     * Count of the EndDevice's that are associated with this Customer
     * 
* * int32 numEndDevices = 4; * @param value The numEndDevices to set. * @return This builder for chaining. */ public Builder setNumEndDevices(int value) { numEndDevices_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * Count of the EndDevice's that are associated with this Customer
     * 
* * int32 numEndDevices = 4; * @return This builder for chaining. */ public Builder clearNumEndDevices() { bitField0_ = (bitField0_ & ~0x00000008); numEndDevices_ = 0; onChanged(); return this; } private java.lang.Object specialNeed_ = ""; /** *
     **
     * A special service need such as life support, hospitals, etc.
     * 
* * string specialNeed = 5; * @return The specialNeed. */ public java.lang.String getSpecialNeed() { java.lang.Object ref = specialNeed_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); specialNeed_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * A special service need such as life support, hospitals, etc.
     * 
* * string specialNeed = 5; * @return The bytes for specialNeed. */ public com.google.protobuf.ByteString getSpecialNeedBytes() { java.lang.Object ref = specialNeed_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); specialNeed_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * A special service need such as life support, hospitals, etc.
     * 
* * string specialNeed = 5; * @param value The specialNeed to set. * @return This builder for chaining. */ public Builder setSpecialNeed( java.lang.String value) { if (value == null) { throw new NullPointerException(); } specialNeed_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * A special service need such as life support, hospitals, etc.
     * 
* * string specialNeed = 5; * @return This builder for chaining. */ public Builder clearSpecialNeed() { specialNeed_ = getDefaultInstance().getSpecialNeed(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     **
     * A special service need such as life support, hospitals, etc.
     * 
* * string specialNeed = 5; * @param value The bytes for specialNeed to set. * @return This builder for chaining. */ public Builder setSpecialNeedBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); specialNeed_ = value; bitField0_ |= 0x00000010; 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.customers.Customer) } // @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61968.customers.Customer) private static final com.zepben.protobuf.cim.iec61968.customers.Customer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61968.customers.Customer(); } public static com.zepben.protobuf.cim.iec61968.customers.Customer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Customer 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.customers.Customer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy