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

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

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

/**
 * 
 **
 * Agreement between the customer and the service supplier to pay for service at a specific service location. It
 * records certain billing information about the type of service provided at the service location and is used
 * during charge creation to determine the type of service.
 * 
* * Protobuf type {@code zepben.protobuf.cim.iec61968.customers.CustomerAgreement} */ public final class CustomerAgreement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61968.customers.CustomerAgreement) CustomerAgreementOrBuilder { private static final long serialVersionUID = 0L; // Use CustomerAgreement.newBuilder() to construct. private CustomerAgreement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomerAgreement() { customerMRID_ = ""; pricingStructureMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CustomerAgreement(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61968.customers.CustomerAgreementOuterClass.internal_static_zepben_protobuf_cim_iec61968_customers_CustomerAgreement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61968.customers.CustomerAgreementOuterClass.internal_static_zepben_protobuf_cim_iec61968_customers_CustomerAgreement_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.class, com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.Builder.class); } private int bitField0_; public static final int AGR_FIELD_NUMBER = 1; private com.zepben.protobuf.cim.iec61968.common.Agreement agr_; /** *
   **
   * The Agreement fields for this CustomerAgreement
   * 
* * .zepben.protobuf.cim.iec61968.common.Agreement agr = 1; * @return Whether the agr field is set. */ @java.lang.Override public boolean hasAgr() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The Agreement fields for this CustomerAgreement
   * 
* * .zepben.protobuf.cim.iec61968.common.Agreement agr = 1; * @return The agr. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.Agreement getAgr() { return agr_ == null ? com.zepben.protobuf.cim.iec61968.common.Agreement.getDefaultInstance() : agr_; } /** *
   **
   * The Agreement fields for this CustomerAgreement
   * 
* * .zepben.protobuf.cim.iec61968.common.Agreement agr = 1; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.AgreementOrBuilder getAgrOrBuilder() { return agr_ == null ? com.zepben.protobuf.cim.iec61968.common.Agreement.getDefaultInstance() : agr_; } public static final int CUSTOMERMRID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object customerMRID_ = ""; /** *
   **
   * Customer for this agreement.
   * 
* * string customerMRID = 2; * @return The customerMRID. */ @java.lang.Override public java.lang.String getCustomerMRID() { java.lang.Object ref = customerMRID_; 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(); customerMRID_ = s; return s; } } /** *
   **
   * Customer for this agreement.
   * 
* * string customerMRID = 2; * @return The bytes for customerMRID. */ @java.lang.Override public com.google.protobuf.ByteString getCustomerMRIDBytes() { java.lang.Object ref = customerMRID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customerMRID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRICINGSTRUCTUREMRIDS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList pricingStructureMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   **
   * All pricing structures applicable to this customer agreement.
   * 
* * repeated string pricingStructureMRIDs = 3; * @return A list containing the pricingStructureMRIDs. */ public com.google.protobuf.ProtocolStringList getPricingStructureMRIDsList() { return pricingStructureMRIDs_; } /** *
   **
   * All pricing structures applicable to this customer agreement.
   * 
* * repeated string pricingStructureMRIDs = 3; * @return The count of pricingStructureMRIDs. */ public int getPricingStructureMRIDsCount() { return pricingStructureMRIDs_.size(); } /** *
   **
   * All pricing structures applicable to this customer agreement.
   * 
* * repeated string pricingStructureMRIDs = 3; * @param index The index of the element to return. * @return The pricingStructureMRIDs at the given index. */ public java.lang.String getPricingStructureMRIDs(int index) { return pricingStructureMRIDs_.get(index); } /** *
   **
   * All pricing structures applicable to this customer agreement.
   * 
* * repeated string pricingStructureMRIDs = 3; * @param index The index of the value to return. * @return The bytes of the pricingStructureMRIDs at the given index. */ public com.google.protobuf.ByteString getPricingStructureMRIDsBytes(int index) { return pricingStructureMRIDs_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getAgr()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerMRID_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, customerMRID_); } for (int i = 0; i < pricingStructureMRIDs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pricingStructureMRIDs_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAgr()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerMRID_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customerMRID_); } { int dataSize = 0; for (int i = 0; i < pricingStructureMRIDs_.size(); i++) { dataSize += computeStringSizeNoTag(pricingStructureMRIDs_.getRaw(i)); } size += dataSize; size += 1 * getPricingStructureMRIDsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement)) { return super.equals(obj); } com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement other = (com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement) obj; if (hasAgr() != other.hasAgr()) return false; if (hasAgr()) { if (!getAgr() .equals(other.getAgr())) return false; } if (!getCustomerMRID() .equals(other.getCustomerMRID())) return false; if (!getPricingStructureMRIDsList() .equals(other.getPricingStructureMRIDsList())) 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 (hasAgr()) { hash = (37 * hash) + AGR_FIELD_NUMBER; hash = (53 * hash) + getAgr().hashCode(); } hash = (37 * hash) + CUSTOMERMRID_FIELD_NUMBER; hash = (53 * hash) + getCustomerMRID().hashCode(); if (getPricingStructureMRIDsCount() > 0) { hash = (37 * hash) + PRICINGSTRUCTUREMRIDS_FIELD_NUMBER; hash = (53 * hash) + getPricingStructureMRIDsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement 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.CustomerAgreement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement 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.CustomerAgreement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement 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.CustomerAgreement 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.CustomerAgreement 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.CustomerAgreement 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.CustomerAgreement 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.CustomerAgreement 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.CustomerAgreement 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.CustomerAgreement 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; } /** *
   **
   * Agreement between the customer and the service supplier to pay for service at a specific service location. It
   * records certain billing information about the type of service provided at the service location and is used
   * during charge creation to determine the type of service.
   * 
* * Protobuf type {@code zepben.protobuf.cim.iec61968.customers.CustomerAgreement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61968.customers.CustomerAgreement) com.zepben.protobuf.cim.iec61968.customers.CustomerAgreementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61968.customers.CustomerAgreementOuterClass.internal_static_zepben_protobuf_cim_iec61968_customers_CustomerAgreement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61968.customers.CustomerAgreementOuterClass.internal_static_zepben_protobuf_cim_iec61968_customers_CustomerAgreement_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.class, com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.Builder.class); } // Construct using com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAgrFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; agr_ = null; if (agrBuilder_ != null) { agrBuilder_.dispose(); agrBuilder_ = null; } customerMRID_ = ""; pricingStructureMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.cim.iec61968.customers.CustomerAgreementOuterClass.internal_static_zepben_protobuf_cim_iec61968_customers_CustomerAgreement_descriptor; } @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement getDefaultInstanceForType() { return com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement build() { com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement buildPartial() { com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement result = new com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.agr_ = agrBuilder_ == null ? agr_ : agrBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.customerMRID_ = customerMRID_; } if (((from_bitField0_ & 0x00000004) != 0)) { pricingStructureMRIDs_.makeImmutable(); result.pricingStructureMRIDs_ = pricingStructureMRIDs_; } 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.CustomerAgreement) { return mergeFrom((com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement other) { if (other == com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement.getDefaultInstance()) return this; if (other.hasAgr()) { mergeAgr(other.getAgr()); } if (!other.getCustomerMRID().isEmpty()) { customerMRID_ = other.customerMRID_; bitField0_ |= 0x00000002; onChanged(); } if (!other.pricingStructureMRIDs_.isEmpty()) { if (pricingStructureMRIDs_.isEmpty()) { pricingStructureMRIDs_ = other.pricingStructureMRIDs_; bitField0_ |= 0x00000004; } else { ensurePricingStructureMRIDsIsMutable(); pricingStructureMRIDs_.addAll(other.pricingStructureMRIDs_); } 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( getAgrFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { customerMRID_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensurePricingStructureMRIDsIsMutable(); pricingStructureMRIDs_.add(s); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.zepben.protobuf.cim.iec61968.common.Agreement agr_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.Agreement, com.zepben.protobuf.cim.iec61968.common.Agreement.Builder, com.zepben.protobuf.cim.iec61968.common.AgreementOrBuilder> agrBuilder_; /** *
     **
     * The Agreement fields for this CustomerAgreement
     * 
* * .zepben.protobuf.cim.iec61968.common.Agreement agr = 1; * @return Whether the agr field is set. */ public boolean hasAgr() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The Agreement fields for this CustomerAgreement
     * 
* * .zepben.protobuf.cim.iec61968.common.Agreement agr = 1; * @return The agr. */ public com.zepben.protobuf.cim.iec61968.common.Agreement getAgr() { if (agrBuilder_ == null) { return agr_ == null ? com.zepben.protobuf.cim.iec61968.common.Agreement.getDefaultInstance() : agr_; } else { return agrBuilder_.getMessage(); } } /** *
     **
     * The Agreement fields for this CustomerAgreement
     * 
* * .zepben.protobuf.cim.iec61968.common.Agreement agr = 1; */ public Builder setAgr(com.zepben.protobuf.cim.iec61968.common.Agreement value) { if (agrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agr_ = value; } else { agrBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The Agreement fields for this CustomerAgreement
     * 
* * .zepben.protobuf.cim.iec61968.common.Agreement agr = 1; */ public Builder setAgr( com.zepben.protobuf.cim.iec61968.common.Agreement.Builder builderForValue) { if (agrBuilder_ == null) { agr_ = builderForValue.build(); } else { agrBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The Agreement fields for this CustomerAgreement
     * 
* * .zepben.protobuf.cim.iec61968.common.Agreement agr = 1; */ public Builder mergeAgr(com.zepben.protobuf.cim.iec61968.common.Agreement value) { if (agrBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && agr_ != null && agr_ != com.zepben.protobuf.cim.iec61968.common.Agreement.getDefaultInstance()) { getAgrBuilder().mergeFrom(value); } else { agr_ = value; } } else { agrBuilder_.mergeFrom(value); } if (agr_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The Agreement fields for this CustomerAgreement
     * 
* * .zepben.protobuf.cim.iec61968.common.Agreement agr = 1; */ public Builder clearAgr() { bitField0_ = (bitField0_ & ~0x00000001); agr_ = null; if (agrBuilder_ != null) { agrBuilder_.dispose(); agrBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The Agreement fields for this CustomerAgreement
     * 
* * .zepben.protobuf.cim.iec61968.common.Agreement agr = 1; */ public com.zepben.protobuf.cim.iec61968.common.Agreement.Builder getAgrBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAgrFieldBuilder().getBuilder(); } /** *
     **
     * The Agreement fields for this CustomerAgreement
     * 
* * .zepben.protobuf.cim.iec61968.common.Agreement agr = 1; */ public com.zepben.protobuf.cim.iec61968.common.AgreementOrBuilder getAgrOrBuilder() { if (agrBuilder_ != null) { return agrBuilder_.getMessageOrBuilder(); } else { return agr_ == null ? com.zepben.protobuf.cim.iec61968.common.Agreement.getDefaultInstance() : agr_; } } /** *
     **
     * The Agreement fields for this CustomerAgreement
     * 
* * .zepben.protobuf.cim.iec61968.common.Agreement agr = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.Agreement, com.zepben.protobuf.cim.iec61968.common.Agreement.Builder, com.zepben.protobuf.cim.iec61968.common.AgreementOrBuilder> getAgrFieldBuilder() { if (agrBuilder_ == null) { agrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.Agreement, com.zepben.protobuf.cim.iec61968.common.Agreement.Builder, com.zepben.protobuf.cim.iec61968.common.AgreementOrBuilder>( getAgr(), getParentForChildren(), isClean()); agr_ = null; } return agrBuilder_; } private java.lang.Object customerMRID_ = ""; /** *
     **
     * Customer for this agreement.
     * 
* * string customerMRID = 2; * @return The customerMRID. */ public java.lang.String getCustomerMRID() { java.lang.Object ref = customerMRID_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerMRID_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * Customer for this agreement.
     * 
* * string customerMRID = 2; * @return The bytes for customerMRID. */ public com.google.protobuf.ByteString getCustomerMRIDBytes() { java.lang.Object ref = customerMRID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customerMRID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * Customer for this agreement.
     * 
* * string customerMRID = 2; * @param value The customerMRID to set. * @return This builder for chaining. */ public Builder setCustomerMRID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } customerMRID_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * Customer for this agreement.
     * 
* * string customerMRID = 2; * @return This builder for chaining. */ public Builder clearCustomerMRID() { customerMRID_ = getDefaultInstance().getCustomerMRID(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     **
     * Customer for this agreement.
     * 
* * string customerMRID = 2; * @param value The bytes for customerMRID to set. * @return This builder for chaining. */ public Builder setCustomerMRIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customerMRID_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList pricingStructureMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePricingStructureMRIDsIsMutable() { if (!pricingStructureMRIDs_.isModifiable()) { pricingStructureMRIDs_ = new com.google.protobuf.LazyStringArrayList(pricingStructureMRIDs_); } bitField0_ |= 0x00000004; } /** *
     **
     * All pricing structures applicable to this customer agreement.
     * 
* * repeated string pricingStructureMRIDs = 3; * @return A list containing the pricingStructureMRIDs. */ public com.google.protobuf.ProtocolStringList getPricingStructureMRIDsList() { pricingStructureMRIDs_.makeImmutable(); return pricingStructureMRIDs_; } /** *
     **
     * All pricing structures applicable to this customer agreement.
     * 
* * repeated string pricingStructureMRIDs = 3; * @return The count of pricingStructureMRIDs. */ public int getPricingStructureMRIDsCount() { return pricingStructureMRIDs_.size(); } /** *
     **
     * All pricing structures applicable to this customer agreement.
     * 
* * repeated string pricingStructureMRIDs = 3; * @param index The index of the element to return. * @return The pricingStructureMRIDs at the given index. */ public java.lang.String getPricingStructureMRIDs(int index) { return pricingStructureMRIDs_.get(index); } /** *
     **
     * All pricing structures applicable to this customer agreement.
     * 
* * repeated string pricingStructureMRIDs = 3; * @param index The index of the value to return. * @return The bytes of the pricingStructureMRIDs at the given index. */ public com.google.protobuf.ByteString getPricingStructureMRIDsBytes(int index) { return pricingStructureMRIDs_.getByteString(index); } /** *
     **
     * All pricing structures applicable to this customer agreement.
     * 
* * repeated string pricingStructureMRIDs = 3; * @param index The index to set the value at. * @param value The pricingStructureMRIDs to set. * @return This builder for chaining. */ public Builder setPricingStructureMRIDs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePricingStructureMRIDsIsMutable(); pricingStructureMRIDs_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * All pricing structures applicable to this customer agreement.
     * 
* * repeated string pricingStructureMRIDs = 3; * @param value The pricingStructureMRIDs to add. * @return This builder for chaining. */ public Builder addPricingStructureMRIDs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePricingStructureMRIDsIsMutable(); pricingStructureMRIDs_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * All pricing structures applicable to this customer agreement.
     * 
* * repeated string pricingStructureMRIDs = 3; * @param values The pricingStructureMRIDs to add. * @return This builder for chaining. */ public Builder addAllPricingStructureMRIDs( java.lang.Iterable values) { ensurePricingStructureMRIDsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pricingStructureMRIDs_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * All pricing structures applicable to this customer agreement.
     * 
* * repeated string pricingStructureMRIDs = 3; * @return This builder for chaining. */ public Builder clearPricingStructureMRIDs() { pricingStructureMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** *
     **
     * All pricing structures applicable to this customer agreement.
     * 
* * repeated string pricingStructureMRIDs = 3; * @param value The bytes of the pricingStructureMRIDs to add. * @return This builder for chaining. */ public Builder addPricingStructureMRIDsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePricingStructureMRIDsIsMutable(); pricingStructureMRIDs_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:zepben.protobuf.cim.iec61968.customers.CustomerAgreement) } // @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61968.customers.CustomerAgreement) private static final com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement(); } public static com.zepben.protobuf.cim.iec61968.customers.CustomerAgreement getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomerAgreement 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.CustomerAgreement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy