From cc42749c20ada32daac64fb21e8715bf1104975c Mon Sep 17 00:00:00 2001 From: Irina Yatsenko <85305353+lholypeachy@users.noreply.github.com> Date: Thu, 23 Jan 2025 14:02:39 +0500 Subject: [PATCH] =?UTF-8?q?DDCORE-8810=20=D0=9F=D0=BE=D0=B4=D0=B4=D0=B5?= =?UTF-8?q?=D1=80=D0=B6=D0=BA=D0=B0=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B?= =?UTF-8?q?=20=D1=81=20=D1=81=D0=B5=D1=80=D1=82=D0=BE=D0=BC=20=D0=AE=D0=9B?= =?UTF-8?q?/=D0=98=D0=9F=20+=20=D0=9C=D0=A7=D0=94.=20=D0=98=D0=B7=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20api=20(#351)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test * poa added rebase master * generate proto * fix * fix * fix * fix codestyle * update version * fix --------- Co-authored-by: yatsenko --- pom.xml | 2 +- proto/PowersOfAttorney/PowerOfAttorney.proto | 42 + .../PowerOfAttorneyProtos.java | 5743 ++++++++++++++++- 3 files changed, 5565 insertions(+), 222 deletions(-) diff --git a/pom.xml b/pom.xml index b7ef9dd6..a68d8d7f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 ru.kontur.diadoc diadocsdk - 3.26.0 + 3.26.1 jar diff --git a/proto/PowersOfAttorney/PowerOfAttorney.proto b/proto/PowersOfAttorney/PowerOfAttorney.proto index 63e307d6..600abd38 100644 --- a/proto/PowersOfAttorney/PowerOfAttorney.proto +++ b/proto/PowersOfAttorney/PowerOfAttorney.proto @@ -22,6 +22,7 @@ message PowerOfAttorney { repeated PowerOfAttorney DelegationChain = 8; required PowerOfAttorneyPermissionsInfo PermissionsInfo = 9; optional PowerOfAttorneyDelegationInfo DelegationInfo = 10; + repeated PowerOfAttorneyRepresentative Representatives = 11; } message PowerOfAttorneyIssuer { @@ -157,3 +158,44 @@ message PowerOfAttorneyContentV2 { required bytes Signature = 2; required PowerOfAttorneyFullId FullId = 3; } + +message PowerOfAttorneyRepresentative { + optional PowerOfAttorneyRepresentativeType Type = 1 [default = UnknownRepresentativeType]; + optional PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + optional PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + optional PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + optional PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + optional PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + } + +enum PowerOfAttorneyRepresentativeType { + UnknownRepresentativeType = 0; + RepresentativeLegalEntity = 1; + RepresentativeIndividualEntity = 2; + RepresentativePhysicalEntity = 3; + RepresentativeLegalSubsidiaryEntity = 4; + RepresentativeForeignLegalSubsidiaryEntity = 5; + } + +message PowerOfAttorneyRepresentativeLegalEntity { + optional string Inn = 1; + required string Kpp = 2; + required string OrganizationName = 3; + repeated PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; +} + +message PowerOfAttorneyRepresentativeIndividualEntity { + required string Inn = 1; + required string OrganizationName = 2; + } + +message PowerOfAttorneyRepresentativePhysicalEntity { + optional string Inn = 1; + required FullName PersonName = 2; +} + +message PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity { + optional string Inn = 1; + optional string Kpp = 2; + required string OrganizationName = 3; +} diff --git a/src/main/java/Diadoc/Api/Proto/PowersOfAttorney/PowerOfAttorneyProtos.java b/src/main/java/Diadoc/Api/Proto/PowersOfAttorney/PowerOfAttorneyProtos.java index 1a5480ce..4ddaade7 100644 --- a/src/main/java/Diadoc/Api/Proto/PowersOfAttorney/PowerOfAttorneyProtos.java +++ b/src/main/java/Diadoc/Api/Proto/PowersOfAttorney/PowerOfAttorneyProtos.java @@ -217,6 +217,124 @@ private PowerOfAttorneySendingType(int index, int value) { // @@protoc_insertion_point(enum_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneySendingType) } + /** + * Protobuf enum {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeType} + */ + public enum PowerOfAttorneyRepresentativeType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UnknownRepresentativeType = 0; + */ + UnknownRepresentativeType(0, 0), + /** + * RepresentativeLegalEntity = 1; + */ + RepresentativeLegalEntity(1, 1), + /** + * RepresentativeIndividualEntity = 2; + */ + RepresentativeIndividualEntity(2, 2), + /** + * RepresentativePhysicalEntity = 3; + */ + RepresentativePhysicalEntity(3, 3), + /** + * RepresentativeLegalSubsidiaryEntity = 4; + */ + RepresentativeLegalSubsidiaryEntity(4, 4), + /** + * RepresentativeForeignLegalSubsidiaryEntity = 5; + */ + RepresentativeForeignLegalSubsidiaryEntity(5, 5), + ; + + /** + * UnknownRepresentativeType = 0; + */ + public static final int UnknownRepresentativeType_VALUE = 0; + /** + * RepresentativeLegalEntity = 1; + */ + public static final int RepresentativeLegalEntity_VALUE = 1; + /** + * RepresentativeIndividualEntity = 2; + */ + public static final int RepresentativeIndividualEntity_VALUE = 2; + /** + * RepresentativePhysicalEntity = 3; + */ + public static final int RepresentativePhysicalEntity_VALUE = 3; + /** + * RepresentativeLegalSubsidiaryEntity = 4; + */ + public static final int RepresentativeLegalSubsidiaryEntity_VALUE = 4; + /** + * RepresentativeForeignLegalSubsidiaryEntity = 5; + */ + public static final int RepresentativeForeignLegalSubsidiaryEntity_VALUE = 5; + + + public final int getNumber() { return value; } + + public static PowerOfAttorneyRepresentativeType valueOf(int value) { + switch (value) { + case 0: return UnknownRepresentativeType; + case 1: return RepresentativeLegalEntity; + case 2: return RepresentativeIndividualEntity; + case 3: return RepresentativePhysicalEntity; + case 4: return RepresentativeLegalSubsidiaryEntity; + case 5: return RepresentativeForeignLegalSubsidiaryEntity; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PowerOfAttorneyRepresentativeType findValueByNumber(int number) { + return PowerOfAttorneyRepresentativeType.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.getDescriptor().getEnumTypes().get(2); + } + + private static final PowerOfAttorneyRepresentativeType[] VALUES = values(); + + public static PowerOfAttorneyRepresentativeType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int index; + private final int value; + + private PowerOfAttorneyRepresentativeType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeType) + } + public interface PowerOfAttorneyFullIdOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyFullId) com.google.protobuf.MessageOrBuilder { @@ -1012,6 +1130,30 @@ Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyOrBuilder * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyDelegationInfo DelegationInfo = 10; */ Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyDelegationInfoOrBuilder getDelegationInfoOrBuilder(); + + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + java.util.List + getRepresentativesList(); + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative getRepresentatives(int index); + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + int getRepresentativesCount(); + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + java.util.List + getRepresentativesOrBuilderList(); + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeOrBuilder getRepresentativesOrBuilder( + int index); } /** * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorney} @@ -1176,6 +1318,14 @@ private PowerOfAttorney( bitField0_ |= 0x00000100; break; } + case 90: { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + representatives_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + representatives_.add(input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.PARSER, extensionRegistry)); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1187,6 +1337,9 @@ private PowerOfAttorney( if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { delegationChain_ = java.util.Collections.unmodifiableList(delegationChain_); } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + representatives_ = java.util.Collections.unmodifiableList(representatives_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -1485,6 +1638,41 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyDe return delegationInfo_; } + public static final int REPRESENTATIVES_FIELD_NUMBER = 11; + private java.util.List representatives_; + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public java.util.List getRepresentativesList() { + return representatives_; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public java.util.List + getRepresentativesOrBuilderList() { + return representatives_; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public int getRepresentativesCount() { + return representatives_.size(); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative getRepresentatives(int index) { + return representatives_.get(index); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeOrBuilder getRepresentativesOrBuilder( + int index) { + return representatives_.get(index); + } + private void initFields() { fullId_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFullId.getDefaultInstance(); issuer_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuer.getDefaultInstance(); @@ -1496,6 +1684,7 @@ private void initFields() { delegationChain_ = java.util.Collections.emptyList(); permissionsInfo_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyPermissionsInfo.getDefaultInstance(); delegationInfo_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyDelegationInfo.getDefaultInstance(); + representatives_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -1563,6 +1752,12 @@ public final boolean isInitialized() { return false; } } + for (int i = 0; i < getRepresentativesCount(); i++) { + if (!getRepresentatives(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } memoizedIsInitialized = 1; return true; } @@ -1600,6 +1795,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(10, delegationInfo_); } + for (int i = 0; i < representatives_.size(); i++) { + output.writeMessage(11, representatives_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1649,6 +1847,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, delegationInfo_); } + for (int i = 0; i < representatives_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, representatives_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; @@ -1766,6 +1968,7 @@ private void maybeForceBuilderInitialization() { getDelegationChainFieldBuilder(); getPermissionsInfoFieldBuilder(); getDelegationInfoFieldBuilder(); + getRepresentativesFieldBuilder(); } } private static Builder create() { @@ -1826,6 +2029,12 @@ public Builder clear() { delegationInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); + if (representativesBuilder_ == null) { + representatives_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + representativesBuilder_.clear(); + } return this; } @@ -1927,6 +2136,15 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorney b } else { result.delegationInfo_ = delegationInfoBuilder_.build(); } + if (representativesBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { + representatives_ = java.util.Collections.unmodifiableList(representatives_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.representatives_ = representatives_; + } else { + result.representatives_ = representativesBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -2000,6 +2218,32 @@ public Builder mergeFrom(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos if (other.hasDelegationInfo()) { mergeDelegationInfo(other.getDelegationInfo()); } + if (representativesBuilder_ == null) { + if (!other.representatives_.isEmpty()) { + if (representatives_.isEmpty()) { + representatives_ = other.representatives_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureRepresentativesIsMutable(); + representatives_.addAll(other.representatives_); + } + onChanged(); + } + } else { + if (!other.representatives_.isEmpty()) { + if (representativesBuilder_.isEmpty()) { + representativesBuilder_.dispose(); + representativesBuilder_ = null; + representatives_ = other.representatives_; + bitField0_ = (bitField0_ & ~0x00000400); + representativesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getRepresentativesFieldBuilder() : null; + } else { + representativesBuilder_.addAllMessages(other.representatives_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); return this; } @@ -2065,6 +2309,12 @@ public final boolean isInitialized() { return false; } } + for (int i = 0; i < getRepresentativesCount(); i++) { + if (!getRepresentatives(i).isInitialized()) { + + return false; + } + } return true; } @@ -3291,126 +3541,366 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyDe return delegationInfoBuilder_; } - // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorney) - } - - static { - defaultInstance = new PowerOfAttorney(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorney) - } - - public interface PowerOfAttorneyIssuerOrBuilder extends - // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuer) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerType Type = 1 [default = UnknownIssuerType]; - */ - boolean hasType(); - /** - * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerType Type = 1 [default = UnknownIssuerType]; - */ - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerType getType(); - - /** - * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerLegalEntity LegalEntity = 2; - */ - boolean hasLegalEntity(); - /** - * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerLegalEntity LegalEntity = 2; - */ - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerLegalEntity getLegalEntity(); - /** - * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerLegalEntity LegalEntity = 2; - */ - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerLegalEntityOrBuilder getLegalEntityOrBuilder(); - - /** - * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerForeignEntity ForeignEntity = 3; - */ - boolean hasForeignEntity(); - /** - * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerForeignEntity ForeignEntity = 3; - */ - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerForeignEntity getForeignEntity(); - /** - * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerForeignEntity ForeignEntity = 3; - */ - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerForeignEntityOrBuilder getForeignEntityOrBuilder(); - - /** - * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerIndividualEntity IndividualEntity = 4; - */ - boolean hasIndividualEntity(); - /** - * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerIndividualEntity IndividualEntity = 4; - */ - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerIndividualEntity getIndividualEntity(); - /** - * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerIndividualEntity IndividualEntity = 4; - */ - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerIndividualEntityOrBuilder getIndividualEntityOrBuilder(); - - /** - * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerPhysicalEntity PhysicalEntity = 5; - */ - boolean hasPhysicalEntity(); - /** - * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerPhysicalEntity PhysicalEntity = 5; - */ - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerPhysicalEntity getPhysicalEntity(); - /** - * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerPhysicalEntity PhysicalEntity = 5; - */ - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerPhysicalEntityOrBuilder getPhysicalEntityOrBuilder(); - } - /** - * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuer} - */ - public static final class PowerOfAttorneyIssuer extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuer) - PowerOfAttorneyIssuerOrBuilder { - // Use PowerOfAttorneyIssuer.newBuilder() to construct. - private PowerOfAttorneyIssuer(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private PowerOfAttorneyIssuer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final PowerOfAttorneyIssuer defaultInstance; - public static PowerOfAttorneyIssuer getDefaultInstance() { - return defaultInstance; - } + private java.util.List representatives_ = + java.util.Collections.emptyList(); + private void ensureRepresentativesIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + representatives_ = new java.util.ArrayList(representatives_); + bitField0_ |= 0x00000400; + } + } - public PowerOfAttorneyIssuer getDefaultInstanceForType() { - return defaultInstance; - } + private com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeOrBuilder> representativesBuilder_; - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PowerOfAttorneyIssuer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public java.util.List getRepresentativesList() { + if (representativesBuilder_ == null) { + return java.util.Collections.unmodifiableList(representatives_); + } else { + return representativesBuilder_.getMessageList(); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public int getRepresentativesCount() { + if (representativesBuilder_ == null) { + return representatives_.size(); + } else { + return representativesBuilder_.getCount(); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative getRepresentatives(int index) { + if (representativesBuilder_ == null) { + return representatives_.get(index); + } else { + return representativesBuilder_.getMessage(index); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Builder setRepresentatives( + int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative value) { + if (representativesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRepresentativesIsMutable(); + representatives_.set(index, value); + onChanged(); + } else { + representativesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Builder setRepresentatives( + int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.Builder builderForValue) { + if (representativesBuilder_ == null) { + ensureRepresentativesIsMutable(); + representatives_.set(index, builderForValue.build()); + onChanged(); + } else { + representativesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Builder addRepresentatives(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative value) { + if (representativesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRepresentativesIsMutable(); + representatives_.add(value); + onChanged(); + } else { + representativesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Builder addRepresentatives( + int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative value) { + if (representativesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRepresentativesIsMutable(); + representatives_.add(index, value); + onChanged(); + } else { + representativesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Builder addRepresentatives( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.Builder builderForValue) { + if (representativesBuilder_ == null) { + ensureRepresentativesIsMutable(); + representatives_.add(builderForValue.build()); + onChanged(); + } else { + representativesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Builder addRepresentatives( + int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.Builder builderForValue) { + if (representativesBuilder_ == null) { + ensureRepresentativesIsMutable(); + representatives_.add(index, builderForValue.build()); + onChanged(); + } else { + representativesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Builder addAllRepresentatives( + java.lang.Iterable values) { + if (representativesBuilder_ == null) { + ensureRepresentativesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, representatives_); + onChanged(); + } else { + representativesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Builder clearRepresentatives() { + if (representativesBuilder_ == null) { + representatives_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + representativesBuilder_.clear(); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Builder removeRepresentatives(int index) { + if (representativesBuilder_ == null) { + ensureRepresentativesIsMutable(); + representatives_.remove(index); + onChanged(); + } else { + representativesBuilder_.remove(index); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.Builder getRepresentativesBuilder( + int index) { + return getRepresentativesFieldBuilder().getBuilder(index); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeOrBuilder getRepresentativesOrBuilder( + int index) { + if (representativesBuilder_ == null) { + return representatives_.get(index); } else { + return representativesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public java.util.List + getRepresentativesOrBuilderList() { + if (representativesBuilder_ != null) { + return representativesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(representatives_); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.Builder addRepresentativesBuilder() { + return getRepresentativesFieldBuilder().addBuilder( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.getDefaultInstance()); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.Builder addRepresentativesBuilder( + int index) { + return getRepresentativesFieldBuilder().addBuilder( + index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.getDefaultInstance()); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative Representatives = 11; + */ + public java.util.List + getRepresentativesBuilderList() { + return getRepresentativesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeOrBuilder> + getRepresentativesFieldBuilder() { + if (representativesBuilder_ == null) { + representativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeOrBuilder>( + representatives_, + ((bitField0_ & 0x00000400) == 0x00000400), + getParentForChildren(), + isClean()); + representatives_ = null; + } + return representativesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorney) + } + + static { + defaultInstance = new PowerOfAttorney(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorney) + } + + public interface PowerOfAttorneyIssuerOrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuer) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerType Type = 1 [default = UnknownIssuerType]; + */ + boolean hasType(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerType Type = 1 [default = UnknownIssuerType]; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerType getType(); + + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerLegalEntity LegalEntity = 2; + */ + boolean hasLegalEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerLegalEntity LegalEntity = 2; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerLegalEntity getLegalEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerLegalEntity LegalEntity = 2; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerLegalEntityOrBuilder getLegalEntityOrBuilder(); + + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerForeignEntity ForeignEntity = 3; + */ + boolean hasForeignEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerForeignEntity ForeignEntity = 3; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerForeignEntity getForeignEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerForeignEntity ForeignEntity = 3; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerForeignEntityOrBuilder getForeignEntityOrBuilder(); + + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerIndividualEntity IndividualEntity = 4; + */ + boolean hasIndividualEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerIndividualEntity IndividualEntity = 4; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerIndividualEntity getIndividualEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerIndividualEntity IndividualEntity = 4; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerIndividualEntityOrBuilder getIndividualEntityOrBuilder(); + + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerPhysicalEntity PhysicalEntity = 5; + */ + boolean hasPhysicalEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerPhysicalEntity PhysicalEntity = 5; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerPhysicalEntity getPhysicalEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuerPhysicalEntity PhysicalEntity = 5; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyIssuerPhysicalEntityOrBuilder getPhysicalEntityOrBuilder(); + } + /** + * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuer} + */ + public static final class PowerOfAttorneyIssuer extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuer) + PowerOfAttorneyIssuerOrBuilder { + // Use PowerOfAttorneyIssuer.newBuilder() to construct. + private PowerOfAttorneyIssuer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PowerOfAttorneyIssuer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final PowerOfAttorneyIssuer defaultInstance; + public static PowerOfAttorneyIssuer getDefaultInstance() { + return defaultInstance; + } + + public PowerOfAttorneyIssuer getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PowerOfAttorneyIssuer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; break; default: { if (!parseUnknownField(input, unknownFields, @@ -20714,24 +21204,4741 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFu // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyContentV2) } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyFullId_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyFullId_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorney_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorney_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyIssuer_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyIssuer_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyIssuerLegalEntity_descriptor; - private static + public interface PowerOfAttorneyRepresentativeOrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeType Type = 1 [default = UnknownRepresentativeType]; + */ + boolean hasType(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeType Type = 1 [default = UnknownRepresentativeType]; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeType getType(); + + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + boolean hasLegalEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity getLegalEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntityOrBuilder getLegalEntityOrBuilder(); + + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + boolean hasIndividualEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity getIndividualEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntityOrBuilder getIndividualEntityOrBuilder(); + + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + boolean hasPhysicalEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity getPhysicalEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntityOrBuilder getPhysicalEntityOrBuilder(); + + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + boolean hasLegalSubsidiaryEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity getLegalSubsidiaryEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntityOrBuilder getLegalSubsidiaryEntityOrBuilder(); + + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + boolean hasForeignLegalSubsidiaryEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity getForeignLegalSubsidiaryEntity(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntityOrBuilder getForeignLegalSubsidiaryEntityOrBuilder(); + } + /** + * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative} + */ + public static final class PowerOfAttorneyRepresentative extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative) + PowerOfAttorneyRepresentativeOrBuilder { + // Use PowerOfAttorneyRepresentative.newBuilder() to construct. + private PowerOfAttorneyRepresentative(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PowerOfAttorneyRepresentative(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final PowerOfAttorneyRepresentative defaultInstance; + public static PowerOfAttorneyRepresentative getDefaultInstance() { + return defaultInstance; + } + + public PowerOfAttorneyRepresentative getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PowerOfAttorneyRepresentative( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeType value = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + type_ = value; + } + break; + } + case 18: { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = legalEntity_.toBuilder(); + } + legalEntity_ = input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(legalEntity_); + legalEntity_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = individualEntity_.toBuilder(); + } + individualEntity_ = input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(individualEntity_); + individualEntity_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = physicalEntity_.toBuilder(); + } + physicalEntity_ = input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(physicalEntity_); + physicalEntity_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 42: { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBuilder = legalSubsidiaryEntity_.toBuilder(); + } + legalSubsidiaryEntity_ = input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(legalSubsidiaryEntity_); + legalSubsidiaryEntity_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + break; + } + case 50: { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.Builder subBuilder = null; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + subBuilder = foreignLegalSubsidiaryEntity_.toBuilder(); + } + foreignLegalSubsidiaryEntity_ = input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(foreignLegalSubsidiaryEntity_); + foreignLegalSubsidiaryEntity_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000020; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentative_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentative_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.class, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public PowerOfAttorneyRepresentative parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PowerOfAttorneyRepresentative(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeType type_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeType Type = 1 [default = UnknownRepresentativeType]; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeType Type = 1 [default = UnknownRepresentativeType]; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeType getType() { + return type_; + } + + public static final int LEGALENTITY_FIELD_NUMBER = 2; + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity legalEntity_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + public boolean hasLegalEntity() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity getLegalEntity() { + return legalEntity_; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntityOrBuilder getLegalEntityOrBuilder() { + return legalEntity_; + } + + public static final int INDIVIDUALENTITY_FIELD_NUMBER = 3; + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity individualEntity_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + public boolean hasIndividualEntity() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity getIndividualEntity() { + return individualEntity_; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntityOrBuilder getIndividualEntityOrBuilder() { + return individualEntity_; + } + + public static final int PHYSICALENTITY_FIELD_NUMBER = 4; + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity physicalEntity_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public boolean hasPhysicalEntity() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity getPhysicalEntity() { + return physicalEntity_; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntityOrBuilder getPhysicalEntityOrBuilder() { + return physicalEntity_; + } + + public static final int LEGALSUBSIDIARYENTITY_FIELD_NUMBER = 5; + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity legalSubsidiaryEntity_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + public boolean hasLegalSubsidiaryEntity() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity getLegalSubsidiaryEntity() { + return legalSubsidiaryEntity_; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntityOrBuilder getLegalSubsidiaryEntityOrBuilder() { + return legalSubsidiaryEntity_; + } + + public static final int FOREIGNLEGALSUBSIDIARYENTITY_FIELD_NUMBER = 6; + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity foreignLegalSubsidiaryEntity_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + public boolean hasForeignLegalSubsidiaryEntity() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity getForeignLegalSubsidiaryEntity() { + return foreignLegalSubsidiaryEntity_; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntityOrBuilder getForeignLegalSubsidiaryEntityOrBuilder() { + return foreignLegalSubsidiaryEntity_; + } + + private void initFields() { + type_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeType.UnknownRepresentativeType; + legalEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.getDefaultInstance(); + individualEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.getDefaultInstance(); + physicalEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.getDefaultInstance(); + legalSubsidiaryEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.getDefaultInstance(); + foreignLegalSubsidiaryEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (hasLegalEntity()) { + if (!getLegalEntity().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasIndividualEntity()) { + if (!getIndividualEntity().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPhysicalEntity()) { + if (!getPhysicalEntity().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasLegalSubsidiaryEntity()) { + if (!getLegalSubsidiaryEntity().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasForeignLegalSubsidiaryEntity()) { + if (!getForeignLegalSubsidiaryEntity().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, type_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, legalEntity_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, individualEntity_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, physicalEntity_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(5, legalSubsidiaryEntity_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeMessage(6, foreignLegalSubsidiaryEntity_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, legalEntity_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, individualEntity_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, physicalEntity_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, legalSubsidiaryEntity_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, foreignLegalSubsidiaryEntity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative) + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentative_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentative_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.class, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.Builder.class); + } + + // Construct using Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getLegalEntityFieldBuilder(); + getIndividualEntityFieldBuilder(); + getPhysicalEntityFieldBuilder(); + getLegalSubsidiaryEntityFieldBuilder(); + getForeignLegalSubsidiaryEntityFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + type_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeType.UnknownRepresentativeType; + bitField0_ = (bitField0_ & ~0x00000001); + if (legalEntityBuilder_ == null) { + legalEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.getDefaultInstance(); + } else { + legalEntityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (individualEntityBuilder_ == null) { + individualEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.getDefaultInstance(); + } else { + individualEntityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (physicalEntityBuilder_ == null) { + physicalEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.getDefaultInstance(); + } else { + physicalEntityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (legalSubsidiaryEntityBuilder_ == null) { + legalSubsidiaryEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.getDefaultInstance(); + } else { + legalSubsidiaryEntityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (foreignLegalSubsidiaryEntityBuilder_ == null) { + foreignLegalSubsidiaryEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.getDefaultInstance(); + } else { + foreignLegalSubsidiaryEntityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentative_descriptor; + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative getDefaultInstanceForType() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.getDefaultInstance(); + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative build() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative buildPartial() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative result = new Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (legalEntityBuilder_ == null) { + result.legalEntity_ = legalEntity_; + } else { + result.legalEntity_ = legalEntityBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (individualEntityBuilder_ == null) { + result.individualEntity_ = individualEntity_; + } else { + result.individualEntity_ = individualEntityBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (physicalEntityBuilder_ == null) { + result.physicalEntity_ = physicalEntity_; + } else { + result.physicalEntity_ = physicalEntityBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + if (legalSubsidiaryEntityBuilder_ == null) { + result.legalSubsidiaryEntity_ = legalSubsidiaryEntity_; + } else { + result.legalSubsidiaryEntity_ = legalSubsidiaryEntityBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + if (foreignLegalSubsidiaryEntityBuilder_ == null) { + result.foreignLegalSubsidiaryEntity_ = foreignLegalSubsidiaryEntity_; + } else { + result.foreignLegalSubsidiaryEntity_ = foreignLegalSubsidiaryEntityBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative) { + return mergeFrom((Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative other) { + if (other == Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative.getDefaultInstance()) return this; + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasLegalEntity()) { + mergeLegalEntity(other.getLegalEntity()); + } + if (other.hasIndividualEntity()) { + mergeIndividualEntity(other.getIndividualEntity()); + } + if (other.hasPhysicalEntity()) { + mergePhysicalEntity(other.getPhysicalEntity()); + } + if (other.hasLegalSubsidiaryEntity()) { + mergeLegalSubsidiaryEntity(other.getLegalSubsidiaryEntity()); + } + if (other.hasForeignLegalSubsidiaryEntity()) { + mergeForeignLegalSubsidiaryEntity(other.getForeignLegalSubsidiaryEntity()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (hasLegalEntity()) { + if (!getLegalEntity().isInitialized()) { + + return false; + } + } + if (hasIndividualEntity()) { + if (!getIndividualEntity().isInitialized()) { + + return false; + } + } + if (hasPhysicalEntity()) { + if (!getPhysicalEntity().isInitialized()) { + + return false; + } + } + if (hasLegalSubsidiaryEntity()) { + if (!getLegalSubsidiaryEntity().isInitialized()) { + + return false; + } + } + if (hasForeignLegalSubsidiaryEntity()) { + if (!getForeignLegalSubsidiaryEntity().isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentative) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeType type_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeType.UnknownRepresentativeType; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeType Type = 1 [default = UnknownRepresentativeType]; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeType Type = 1 [default = UnknownRepresentativeType]; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeType getType() { + return type_; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeType Type = 1 [default = UnknownRepresentativeType]; + */ + public Builder setType(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeType Type = 1 [default = UnknownRepresentativeType]; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeType.UnknownRepresentativeType; + onChanged(); + return this; + } + + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity legalEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntityOrBuilder> legalEntityBuilder_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + public boolean hasLegalEntity() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity getLegalEntity() { + if (legalEntityBuilder_ == null) { + return legalEntity_; + } else { + return legalEntityBuilder_.getMessage(); + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + public Builder setLegalEntity(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity value) { + if (legalEntityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + legalEntity_ = value; + onChanged(); + } else { + legalEntityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + public Builder setLegalEntity( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.Builder builderForValue) { + if (legalEntityBuilder_ == null) { + legalEntity_ = builderForValue.build(); + onChanged(); + } else { + legalEntityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + public Builder mergeLegalEntity(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity value) { + if (legalEntityBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + legalEntity_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.getDefaultInstance()) { + legalEntity_ = + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.newBuilder(legalEntity_).mergeFrom(value).buildPartial(); + } else { + legalEntity_ = value; + } + onChanged(); + } else { + legalEntityBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + public Builder clearLegalEntity() { + if (legalEntityBuilder_ == null) { + legalEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.getDefaultInstance(); + onChanged(); + } else { + legalEntityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.Builder getLegalEntityBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLegalEntityFieldBuilder().getBuilder(); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntityOrBuilder getLegalEntityOrBuilder() { + if (legalEntityBuilder_ != null) { + return legalEntityBuilder_.getMessageOrBuilder(); + } else { + return legalEntity_; + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntityOrBuilder> + getLegalEntityFieldBuilder() { + if (legalEntityBuilder_ == null) { + legalEntityBuilder_ = new com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntityOrBuilder>( + getLegalEntity(), + getParentForChildren(), + isClean()); + legalEntity_ = null; + } + return legalEntityBuilder_; + } + + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity individualEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntityOrBuilder> individualEntityBuilder_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + public boolean hasIndividualEntity() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity getIndividualEntity() { + if (individualEntityBuilder_ == null) { + return individualEntity_; + } else { + return individualEntityBuilder_.getMessage(); + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + public Builder setIndividualEntity(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity value) { + if (individualEntityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + individualEntity_ = value; + onChanged(); + } else { + individualEntityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + public Builder setIndividualEntity( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.Builder builderForValue) { + if (individualEntityBuilder_ == null) { + individualEntity_ = builderForValue.build(); + onChanged(); + } else { + individualEntityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + public Builder mergeIndividualEntity(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity value) { + if (individualEntityBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + individualEntity_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.getDefaultInstance()) { + individualEntity_ = + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.newBuilder(individualEntity_).mergeFrom(value).buildPartial(); + } else { + individualEntity_ = value; + } + onChanged(); + } else { + individualEntityBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + public Builder clearIndividualEntity() { + if (individualEntityBuilder_ == null) { + individualEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.getDefaultInstance(); + onChanged(); + } else { + individualEntityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.Builder getIndividualEntityBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getIndividualEntityFieldBuilder().getBuilder(); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntityOrBuilder getIndividualEntityOrBuilder() { + if (individualEntityBuilder_ != null) { + return individualEntityBuilder_.getMessageOrBuilder(); + } else { + return individualEntity_; + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntityOrBuilder> + getIndividualEntityFieldBuilder() { + if (individualEntityBuilder_ == null) { + individualEntityBuilder_ = new com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntityOrBuilder>( + getIndividualEntity(), + getParentForChildren(), + isClean()); + individualEntity_ = null; + } + return individualEntityBuilder_; + } + + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity physicalEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntityOrBuilder> physicalEntityBuilder_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public boolean hasPhysicalEntity() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity getPhysicalEntity() { + if (physicalEntityBuilder_ == null) { + return physicalEntity_; + } else { + return physicalEntityBuilder_.getMessage(); + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Builder setPhysicalEntity(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity value) { + if (physicalEntityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + physicalEntity_ = value; + onChanged(); + } else { + physicalEntityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Builder setPhysicalEntity( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder builderForValue) { + if (physicalEntityBuilder_ == null) { + physicalEntity_ = builderForValue.build(); + onChanged(); + } else { + physicalEntityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Builder mergePhysicalEntity(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity value) { + if (physicalEntityBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + physicalEntity_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.getDefaultInstance()) { + physicalEntity_ = + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.newBuilder(physicalEntity_).mergeFrom(value).buildPartial(); + } else { + physicalEntity_ = value; + } + onChanged(); + } else { + physicalEntityBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Builder clearPhysicalEntity() { + if (physicalEntityBuilder_ == null) { + physicalEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.getDefaultInstance(); + onChanged(); + } else { + physicalEntityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder getPhysicalEntityBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getPhysicalEntityFieldBuilder().getBuilder(); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntityOrBuilder getPhysicalEntityOrBuilder() { + if (physicalEntityBuilder_ != null) { + return physicalEntityBuilder_.getMessageOrBuilder(); + } else { + return physicalEntity_; + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntityOrBuilder> + getPhysicalEntityFieldBuilder() { + if (physicalEntityBuilder_ == null) { + physicalEntityBuilder_ = new com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntityOrBuilder>( + getPhysicalEntity(), + getParentForChildren(), + isClean()); + physicalEntity_ = null; + } + return physicalEntityBuilder_; + } + + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity legalSubsidiaryEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntityOrBuilder> legalSubsidiaryEntityBuilder_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + public boolean hasLegalSubsidiaryEntity() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity getLegalSubsidiaryEntity() { + if (legalSubsidiaryEntityBuilder_ == null) { + return legalSubsidiaryEntity_; + } else { + return legalSubsidiaryEntityBuilder_.getMessage(); + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + public Builder setLegalSubsidiaryEntity(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity value) { + if (legalSubsidiaryEntityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + legalSubsidiaryEntity_ = value; + onChanged(); + } else { + legalSubsidiaryEntityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + public Builder setLegalSubsidiaryEntity( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.Builder builderForValue) { + if (legalSubsidiaryEntityBuilder_ == null) { + legalSubsidiaryEntity_ = builderForValue.build(); + onChanged(); + } else { + legalSubsidiaryEntityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + public Builder mergeLegalSubsidiaryEntity(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity value) { + if (legalSubsidiaryEntityBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + legalSubsidiaryEntity_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.getDefaultInstance()) { + legalSubsidiaryEntity_ = + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.newBuilder(legalSubsidiaryEntity_).mergeFrom(value).buildPartial(); + } else { + legalSubsidiaryEntity_ = value; + } + onChanged(); + } else { + legalSubsidiaryEntityBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + public Builder clearLegalSubsidiaryEntity() { + if (legalSubsidiaryEntityBuilder_ == null) { + legalSubsidiaryEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.getDefaultInstance(); + onChanged(); + } else { + legalSubsidiaryEntityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.Builder getLegalSubsidiaryEntityBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getLegalSubsidiaryEntityFieldBuilder().getBuilder(); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntityOrBuilder getLegalSubsidiaryEntityOrBuilder() { + if (legalSubsidiaryEntityBuilder_ != null) { + return legalSubsidiaryEntityBuilder_.getMessageOrBuilder(); + } else { + return legalSubsidiaryEntity_; + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntityOrBuilder> + getLegalSubsidiaryEntityFieldBuilder() { + if (legalSubsidiaryEntityBuilder_ == null) { + legalSubsidiaryEntityBuilder_ = new com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntityOrBuilder>( + getLegalSubsidiaryEntity(), + getParentForChildren(), + isClean()); + legalSubsidiaryEntity_ = null; + } + return legalSubsidiaryEntityBuilder_; + } + + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity foreignLegalSubsidiaryEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntityOrBuilder> foreignLegalSubsidiaryEntityBuilder_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + public boolean hasForeignLegalSubsidiaryEntity() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity getForeignLegalSubsidiaryEntity() { + if (foreignLegalSubsidiaryEntityBuilder_ == null) { + return foreignLegalSubsidiaryEntity_; + } else { + return foreignLegalSubsidiaryEntityBuilder_.getMessage(); + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + public Builder setForeignLegalSubsidiaryEntity(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity value) { + if (foreignLegalSubsidiaryEntityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + foreignLegalSubsidiaryEntity_ = value; + onChanged(); + } else { + foreignLegalSubsidiaryEntityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + public Builder setForeignLegalSubsidiaryEntity( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.Builder builderForValue) { + if (foreignLegalSubsidiaryEntityBuilder_ == null) { + foreignLegalSubsidiaryEntity_ = builderForValue.build(); + onChanged(); + } else { + foreignLegalSubsidiaryEntityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + public Builder mergeForeignLegalSubsidiaryEntity(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity value) { + if (foreignLegalSubsidiaryEntityBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020) && + foreignLegalSubsidiaryEntity_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.getDefaultInstance()) { + foreignLegalSubsidiaryEntity_ = + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.newBuilder(foreignLegalSubsidiaryEntity_).mergeFrom(value).buildPartial(); + } else { + foreignLegalSubsidiaryEntity_ = value; + } + onChanged(); + } else { + foreignLegalSubsidiaryEntityBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + public Builder clearForeignLegalSubsidiaryEntity() { + if (foreignLegalSubsidiaryEntityBuilder_ == null) { + foreignLegalSubsidiaryEntity_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.getDefaultInstance(); + onChanged(); + } else { + foreignLegalSubsidiaryEntityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.Builder getForeignLegalSubsidiaryEntityBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getForeignLegalSubsidiaryEntityFieldBuilder().getBuilder(); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntityOrBuilder getForeignLegalSubsidiaryEntityOrBuilder() { + if (foreignLegalSubsidiaryEntityBuilder_ != null) { + return foreignLegalSubsidiaryEntityBuilder_.getMessageOrBuilder(); + } else { + return foreignLegalSubsidiaryEntity_; + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntityOrBuilder> + getForeignLegalSubsidiaryEntityFieldBuilder() { + if (foreignLegalSubsidiaryEntityBuilder_ == null) { + foreignLegalSubsidiaryEntityBuilder_ = new com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntityOrBuilder>( + getForeignLegalSubsidiaryEntity(), + getParentForChildren(), + isClean()); + foreignLegalSubsidiaryEntity_ = null; + } + return foreignLegalSubsidiaryEntityBuilder_; + } + + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative) + } + + static { + defaultInstance = new PowerOfAttorneyRepresentative(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentative) + } + + public interface PowerOfAttorneyRepresentativeLegalEntityOrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string Inn = 1; + */ + boolean hasInn(); + /** + * optional string Inn = 1; + */ + java.lang.String getInn(); + /** + * optional string Inn = 1; + */ + com.google.protobuf.ByteString + getInnBytes(); + + /** + * required string Kpp = 2; + */ + boolean hasKpp(); + /** + * required string Kpp = 2; + */ + java.lang.String getKpp(); + /** + * required string Kpp = 2; + */ + com.google.protobuf.ByteString + getKppBytes(); + + /** + * required string OrganizationName = 3; + */ + boolean hasOrganizationName(); + /** + * required string OrganizationName = 3; + */ + java.lang.String getOrganizationName(); + /** + * required string OrganizationName = 3; + */ + com.google.protobuf.ByteString + getOrganizationNameBytes(); + + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + java.util.List + getPhysicalEntityList(); + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity getPhysicalEntity(int index); + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + int getPhysicalEntityCount(); + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + java.util.List + getPhysicalEntityOrBuilderList(); + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntityOrBuilder getPhysicalEntityOrBuilder( + int index); + } + /** + * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity} + */ + public static final class PowerOfAttorneyRepresentativeLegalEntity extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity) + PowerOfAttorneyRepresentativeLegalEntityOrBuilder { + // Use PowerOfAttorneyRepresentativeLegalEntity.newBuilder() to construct. + private PowerOfAttorneyRepresentativeLegalEntity(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PowerOfAttorneyRepresentativeLegalEntity(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final PowerOfAttorneyRepresentativeLegalEntity defaultInstance; + public static PowerOfAttorneyRepresentativeLegalEntity getDefaultInstance() { + return defaultInstance; + } + + public PowerOfAttorneyRepresentativeLegalEntity getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PowerOfAttorneyRepresentativeLegalEntity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + inn_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + kpp_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + organizationName_ = bs; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + physicalEntity_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + physicalEntity_.add(input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + physicalEntity_ = java.util.Collections.unmodifiableList(physicalEntity_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeLegalEntity_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeLegalEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.class, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public PowerOfAttorneyRepresentativeLegalEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PowerOfAttorneyRepresentativeLegalEntity(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int INN_FIELD_NUMBER = 1; + private java.lang.Object inn_; + /** + * optional string Inn = 1; + */ + public boolean hasInn() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string Inn = 1; + */ + public java.lang.String getInn() { + java.lang.Object ref = inn_; + 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(); + if (bs.isValidUtf8()) { + inn_ = s; + } + return s; + } + } + /** + * optional string Inn = 1; + */ + public com.google.protobuf.ByteString + getInnBytes() { + java.lang.Object ref = inn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KPP_FIELD_NUMBER = 2; + private java.lang.Object kpp_; + /** + * required string Kpp = 2; + */ + public boolean hasKpp() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string Kpp = 2; + */ + public java.lang.String getKpp() { + java.lang.Object ref = kpp_; + 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(); + if (bs.isValidUtf8()) { + kpp_ = s; + } + return s; + } + } + /** + * required string Kpp = 2; + */ + public com.google.protobuf.ByteString + getKppBytes() { + java.lang.Object ref = kpp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kpp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATIONNAME_FIELD_NUMBER = 3; + private java.lang.Object organizationName_; + /** + * required string OrganizationName = 3; + */ + public boolean hasOrganizationName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required string OrganizationName = 3; + */ + public java.lang.String getOrganizationName() { + java.lang.Object ref = organizationName_; + 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(); + if (bs.isValidUtf8()) { + organizationName_ = s; + } + return s; + } + } + /** + * required string OrganizationName = 3; + */ + public com.google.protobuf.ByteString + getOrganizationNameBytes() { + java.lang.Object ref = organizationName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHYSICALENTITY_FIELD_NUMBER = 4; + private java.util.List physicalEntity_; + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public java.util.List getPhysicalEntityList() { + return physicalEntity_; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public java.util.List + getPhysicalEntityOrBuilderList() { + return physicalEntity_; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public int getPhysicalEntityCount() { + return physicalEntity_.size(); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity getPhysicalEntity(int index) { + return physicalEntity_.get(index); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntityOrBuilder getPhysicalEntityOrBuilder( + int index) { + return physicalEntity_.get(index); + } + + private void initFields() { + inn_ = ""; + kpp_ = ""; + organizationName_ = ""; + physicalEntity_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasKpp()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasOrganizationName()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getPhysicalEntityCount(); i++) { + if (!getPhysicalEntity(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getInnBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getKppBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getOrganizationNameBytes()); + } + for (int i = 0; i < physicalEntity_.size(); i++) { + output.writeMessage(4, physicalEntity_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getInnBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getKppBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getOrganizationNameBytes()); + } + for (int i = 0; i < physicalEntity_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, physicalEntity_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity) + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeLegalEntity_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeLegalEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.class, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.Builder.class); + } + + // Construct using Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getPhysicalEntityFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + inn_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + kpp_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + organizationName_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + if (physicalEntityBuilder_ == null) { + physicalEntity_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + physicalEntityBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeLegalEntity_descriptor; + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity getDefaultInstanceForType() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.getDefaultInstance(); + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity build() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity buildPartial() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity result = new Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.inn_ = inn_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.kpp_ = kpp_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.organizationName_ = organizationName_; + if (physicalEntityBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + physicalEntity_ = java.util.Collections.unmodifiableList(physicalEntity_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.physicalEntity_ = physicalEntity_; + } else { + result.physicalEntity_ = physicalEntityBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity) { + return mergeFrom((Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity other) { + if (other == Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity.getDefaultInstance()) return this; + if (other.hasInn()) { + bitField0_ |= 0x00000001; + inn_ = other.inn_; + onChanged(); + } + if (other.hasKpp()) { + bitField0_ |= 0x00000002; + kpp_ = other.kpp_; + onChanged(); + } + if (other.hasOrganizationName()) { + bitField0_ |= 0x00000004; + organizationName_ = other.organizationName_; + onChanged(); + } + if (physicalEntityBuilder_ == null) { + if (!other.physicalEntity_.isEmpty()) { + if (physicalEntity_.isEmpty()) { + physicalEntity_ = other.physicalEntity_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePhysicalEntityIsMutable(); + physicalEntity_.addAll(other.physicalEntity_); + } + onChanged(); + } + } else { + if (!other.physicalEntity_.isEmpty()) { + if (physicalEntityBuilder_.isEmpty()) { + physicalEntityBuilder_.dispose(); + physicalEntityBuilder_ = null; + physicalEntity_ = other.physicalEntity_; + bitField0_ = (bitField0_ & ~0x00000008); + physicalEntityBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getPhysicalEntityFieldBuilder() : null; + } else { + physicalEntityBuilder_.addAllMessages(other.physicalEntity_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasKpp()) { + + return false; + } + if (!hasOrganizationName()) { + + return false; + } + for (int i = 0; i < getPhysicalEntityCount(); i++) { + if (!getPhysicalEntity(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeLegalEntity) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object inn_ = ""; + /** + * optional string Inn = 1; + */ + public boolean hasInn() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string Inn = 1; + */ + public java.lang.String getInn() { + java.lang.Object ref = inn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + inn_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string Inn = 1; + */ + public com.google.protobuf.ByteString + getInnBytes() { + java.lang.Object ref = inn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string Inn = 1; + */ + public Builder setInn( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + inn_ = value; + onChanged(); + return this; + } + /** + * optional string Inn = 1; + */ + public Builder clearInn() { + bitField0_ = (bitField0_ & ~0x00000001); + inn_ = getDefaultInstance().getInn(); + onChanged(); + return this; + } + /** + * optional string Inn = 1; + */ + public Builder setInnBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + inn_ = value; + onChanged(); + return this; + } + + private java.lang.Object kpp_ = ""; + /** + * required string Kpp = 2; + */ + public boolean hasKpp() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string Kpp = 2; + */ + public java.lang.String getKpp() { + java.lang.Object ref = kpp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + kpp_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string Kpp = 2; + */ + public com.google.protobuf.ByteString + getKppBytes() { + java.lang.Object ref = kpp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kpp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string Kpp = 2; + */ + public Builder setKpp( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + kpp_ = value; + onChanged(); + return this; + } + /** + * required string Kpp = 2; + */ + public Builder clearKpp() { + bitField0_ = (bitField0_ & ~0x00000002); + kpp_ = getDefaultInstance().getKpp(); + onChanged(); + return this; + } + /** + * required string Kpp = 2; + */ + public Builder setKppBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + kpp_ = value; + onChanged(); + return this; + } + + private java.lang.Object organizationName_ = ""; + /** + * required string OrganizationName = 3; + */ + public boolean hasOrganizationName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required string OrganizationName = 3; + */ + public java.lang.String getOrganizationName() { + java.lang.Object ref = organizationName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + organizationName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string OrganizationName = 3; + */ + public com.google.protobuf.ByteString + getOrganizationNameBytes() { + java.lang.Object ref = organizationName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string OrganizationName = 3; + */ + public Builder setOrganizationName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + organizationName_ = value; + onChanged(); + return this; + } + /** + * required string OrganizationName = 3; + */ + public Builder clearOrganizationName() { + bitField0_ = (bitField0_ & ~0x00000004); + organizationName_ = getDefaultInstance().getOrganizationName(); + onChanged(); + return this; + } + /** + * required string OrganizationName = 3; + */ + public Builder setOrganizationNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + organizationName_ = value; + onChanged(); + return this; + } + + private java.util.List physicalEntity_ = + java.util.Collections.emptyList(); + private void ensurePhysicalEntityIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + physicalEntity_ = new java.util.ArrayList(physicalEntity_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntityOrBuilder> physicalEntityBuilder_; + + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public java.util.List getPhysicalEntityList() { + if (physicalEntityBuilder_ == null) { + return java.util.Collections.unmodifiableList(physicalEntity_); + } else { + return physicalEntityBuilder_.getMessageList(); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public int getPhysicalEntityCount() { + if (physicalEntityBuilder_ == null) { + return physicalEntity_.size(); + } else { + return physicalEntityBuilder_.getCount(); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity getPhysicalEntity(int index) { + if (physicalEntityBuilder_ == null) { + return physicalEntity_.get(index); + } else { + return physicalEntityBuilder_.getMessage(index); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Builder setPhysicalEntity( + int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity value) { + if (physicalEntityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhysicalEntityIsMutable(); + physicalEntity_.set(index, value); + onChanged(); + } else { + physicalEntityBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Builder setPhysicalEntity( + int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder builderForValue) { + if (physicalEntityBuilder_ == null) { + ensurePhysicalEntityIsMutable(); + physicalEntity_.set(index, builderForValue.build()); + onChanged(); + } else { + physicalEntityBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Builder addPhysicalEntity(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity value) { + if (physicalEntityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhysicalEntityIsMutable(); + physicalEntity_.add(value); + onChanged(); + } else { + physicalEntityBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Builder addPhysicalEntity( + int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity value) { + if (physicalEntityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhysicalEntityIsMutable(); + physicalEntity_.add(index, value); + onChanged(); + } else { + physicalEntityBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Builder addPhysicalEntity( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder builderForValue) { + if (physicalEntityBuilder_ == null) { + ensurePhysicalEntityIsMutable(); + physicalEntity_.add(builderForValue.build()); + onChanged(); + } else { + physicalEntityBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Builder addPhysicalEntity( + int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder builderForValue) { + if (physicalEntityBuilder_ == null) { + ensurePhysicalEntityIsMutable(); + physicalEntity_.add(index, builderForValue.build()); + onChanged(); + } else { + physicalEntityBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Builder addAllPhysicalEntity( + java.lang.Iterable values) { + if (physicalEntityBuilder_ == null) { + ensurePhysicalEntityIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, physicalEntity_); + onChanged(); + } else { + physicalEntityBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Builder clearPhysicalEntity() { + if (physicalEntityBuilder_ == null) { + physicalEntity_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + physicalEntityBuilder_.clear(); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Builder removePhysicalEntity(int index) { + if (physicalEntityBuilder_ == null) { + ensurePhysicalEntityIsMutable(); + physicalEntity_.remove(index); + onChanged(); + } else { + physicalEntityBuilder_.remove(index); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder getPhysicalEntityBuilder( + int index) { + return getPhysicalEntityFieldBuilder().getBuilder(index); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntityOrBuilder getPhysicalEntityOrBuilder( + int index) { + if (physicalEntityBuilder_ == null) { + return physicalEntity_.get(index); } else { + return physicalEntityBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public java.util.List + getPhysicalEntityOrBuilderList() { + if (physicalEntityBuilder_ != null) { + return physicalEntityBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(physicalEntity_); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder addPhysicalEntityBuilder() { + return getPhysicalEntityFieldBuilder().addBuilder( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.getDefaultInstance()); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder addPhysicalEntityBuilder( + int index) { + return getPhysicalEntityFieldBuilder().addBuilder( + index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.getDefaultInstance()); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4; + */ + public java.util.List + getPhysicalEntityBuilderList() { + return getPhysicalEntityFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntityOrBuilder> + getPhysicalEntityFieldBuilder() { + if (physicalEntityBuilder_ == null) { + physicalEntityBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntityOrBuilder>( + physicalEntity_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + physicalEntity_ = null; + } + return physicalEntityBuilder_; + } + + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity) + } + + static { + defaultInstance = new PowerOfAttorneyRepresentativeLegalEntity(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeLegalEntity) + } + + public interface PowerOfAttorneyRepresentativeIndividualEntityOrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * required string Inn = 1; + */ + boolean hasInn(); + /** + * required string Inn = 1; + */ + java.lang.String getInn(); + /** + * required string Inn = 1; + */ + com.google.protobuf.ByteString + getInnBytes(); + + /** + * required string OrganizationName = 2; + */ + boolean hasOrganizationName(); + /** + * required string OrganizationName = 2; + */ + java.lang.String getOrganizationName(); + /** + * required string OrganizationName = 2; + */ + com.google.protobuf.ByteString + getOrganizationNameBytes(); + } + /** + * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity} + */ + public static final class PowerOfAttorneyRepresentativeIndividualEntity extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity) + PowerOfAttorneyRepresentativeIndividualEntityOrBuilder { + // Use PowerOfAttorneyRepresentativeIndividualEntity.newBuilder() to construct. + private PowerOfAttorneyRepresentativeIndividualEntity(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PowerOfAttorneyRepresentativeIndividualEntity(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final PowerOfAttorneyRepresentativeIndividualEntity defaultInstance; + public static PowerOfAttorneyRepresentativeIndividualEntity getDefaultInstance() { + return defaultInstance; + } + + public PowerOfAttorneyRepresentativeIndividualEntity getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PowerOfAttorneyRepresentativeIndividualEntity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + inn_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + organizationName_ = bs; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeIndividualEntity_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeIndividualEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.class, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public PowerOfAttorneyRepresentativeIndividualEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PowerOfAttorneyRepresentativeIndividualEntity(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int INN_FIELD_NUMBER = 1; + private java.lang.Object inn_; + /** + * required string Inn = 1; + */ + public boolean hasInn() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string Inn = 1; + */ + public java.lang.String getInn() { + java.lang.Object ref = inn_; + 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(); + if (bs.isValidUtf8()) { + inn_ = s; + } + return s; + } + } + /** + * required string Inn = 1; + */ + public com.google.protobuf.ByteString + getInnBytes() { + java.lang.Object ref = inn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATIONNAME_FIELD_NUMBER = 2; + private java.lang.Object organizationName_; + /** + * required string OrganizationName = 2; + */ + public boolean hasOrganizationName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string OrganizationName = 2; + */ + public java.lang.String getOrganizationName() { + java.lang.Object ref = organizationName_; + 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(); + if (bs.isValidUtf8()) { + organizationName_ = s; + } + return s; + } + } + /** + * required string OrganizationName = 2; + */ + public com.google.protobuf.ByteString + getOrganizationNameBytes() { + java.lang.Object ref = organizationName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + inn_ = ""; + organizationName_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasInn()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasOrganizationName()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getInnBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getOrganizationNameBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getInnBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getOrganizationNameBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity) + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeIndividualEntity_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeIndividualEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.class, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.Builder.class); + } + + // Construct using Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + inn_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + organizationName_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeIndividualEntity_descriptor; + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity getDefaultInstanceForType() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.getDefaultInstance(); + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity build() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity buildPartial() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity result = new Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.inn_ = inn_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.organizationName_ = organizationName_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity) { + return mergeFrom((Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity other) { + if (other == Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity.getDefaultInstance()) return this; + if (other.hasInn()) { + bitField0_ |= 0x00000001; + inn_ = other.inn_; + onChanged(); + } + if (other.hasOrganizationName()) { + bitField0_ |= 0x00000002; + organizationName_ = other.organizationName_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasInn()) { + + return false; + } + if (!hasOrganizationName()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeIndividualEntity) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object inn_ = ""; + /** + * required string Inn = 1; + */ + public boolean hasInn() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string Inn = 1; + */ + public java.lang.String getInn() { + java.lang.Object ref = inn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + inn_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string Inn = 1; + */ + public com.google.protobuf.ByteString + getInnBytes() { + java.lang.Object ref = inn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string Inn = 1; + */ + public Builder setInn( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + inn_ = value; + onChanged(); + return this; + } + /** + * required string Inn = 1; + */ + public Builder clearInn() { + bitField0_ = (bitField0_ & ~0x00000001); + inn_ = getDefaultInstance().getInn(); + onChanged(); + return this; + } + /** + * required string Inn = 1; + */ + public Builder setInnBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + inn_ = value; + onChanged(); + return this; + } + + private java.lang.Object organizationName_ = ""; + /** + * required string OrganizationName = 2; + */ + public boolean hasOrganizationName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string OrganizationName = 2; + */ + public java.lang.String getOrganizationName() { + java.lang.Object ref = organizationName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + organizationName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string OrganizationName = 2; + */ + public com.google.protobuf.ByteString + getOrganizationNameBytes() { + java.lang.Object ref = organizationName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string OrganizationName = 2; + */ + public Builder setOrganizationName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + organizationName_ = value; + onChanged(); + return this; + } + /** + * required string OrganizationName = 2; + */ + public Builder clearOrganizationName() { + bitField0_ = (bitField0_ & ~0x00000002); + organizationName_ = getDefaultInstance().getOrganizationName(); + onChanged(); + return this; + } + /** + * required string OrganizationName = 2; + */ + public Builder setOrganizationNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + organizationName_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity) + } + + static { + defaultInstance = new PowerOfAttorneyRepresentativeIndividualEntity(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeIndividualEntity) + } + + public interface PowerOfAttorneyRepresentativePhysicalEntityOrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string Inn = 1; + */ + boolean hasInn(); + /** + * optional string Inn = 1; + */ + java.lang.String getInn(); + /** + * optional string Inn = 1; + */ + com.google.protobuf.ByteString + getInnBytes(); + + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + boolean hasPersonName(); + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + Diadoc.Api.Proto.UserProtos.FullName getPersonName(); + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + Diadoc.Api.Proto.UserProtos.FullNameOrBuilder getPersonNameOrBuilder(); + } + /** + * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity} + */ + public static final class PowerOfAttorneyRepresentativePhysicalEntity extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity) + PowerOfAttorneyRepresentativePhysicalEntityOrBuilder { + // Use PowerOfAttorneyRepresentativePhysicalEntity.newBuilder() to construct. + private PowerOfAttorneyRepresentativePhysicalEntity(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PowerOfAttorneyRepresentativePhysicalEntity(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final PowerOfAttorneyRepresentativePhysicalEntity defaultInstance; + public static PowerOfAttorneyRepresentativePhysicalEntity getDefaultInstance() { + return defaultInstance; + } + + public PowerOfAttorneyRepresentativePhysicalEntity getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PowerOfAttorneyRepresentativePhysicalEntity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + inn_ = bs; + break; + } + case 18: { + Diadoc.Api.Proto.UserProtos.FullName.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = personName_.toBuilder(); + } + personName_ = input.readMessage(Diadoc.Api.Proto.UserProtos.FullName.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(personName_); + personName_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativePhysicalEntity_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativePhysicalEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.class, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public PowerOfAttorneyRepresentativePhysicalEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PowerOfAttorneyRepresentativePhysicalEntity(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int INN_FIELD_NUMBER = 1; + private java.lang.Object inn_; + /** + * optional string Inn = 1; + */ + public boolean hasInn() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string Inn = 1; + */ + public java.lang.String getInn() { + java.lang.Object ref = inn_; + 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(); + if (bs.isValidUtf8()) { + inn_ = s; + } + return s; + } + } + /** + * optional string Inn = 1; + */ + public com.google.protobuf.ByteString + getInnBytes() { + java.lang.Object ref = inn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PERSONNAME_FIELD_NUMBER = 2; + private Diadoc.Api.Proto.UserProtos.FullName personName_; + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + public boolean hasPersonName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + public Diadoc.Api.Proto.UserProtos.FullName getPersonName() { + return personName_; + } + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + public Diadoc.Api.Proto.UserProtos.FullNameOrBuilder getPersonNameOrBuilder() { + return personName_; + } + + private void initFields() { + inn_ = ""; + personName_ = Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasPersonName()) { + memoizedIsInitialized = 0; + return false; + } + if (!getPersonName().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getInnBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, personName_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getInnBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, personName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity) + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativePhysicalEntity_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativePhysicalEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.class, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.Builder.class); + } + + // Construct using Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getPersonNameFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + inn_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (personNameBuilder_ == null) { + personName_ = Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance(); + } else { + personNameBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativePhysicalEntity_descriptor; + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity getDefaultInstanceForType() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.getDefaultInstance(); + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity build() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity buildPartial() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity result = new Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.inn_ = inn_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (personNameBuilder_ == null) { + result.personName_ = personName_; + } else { + result.personName_ = personNameBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity) { + return mergeFrom((Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity other) { + if (other == Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity.getDefaultInstance()) return this; + if (other.hasInn()) { + bitField0_ |= 0x00000001; + inn_ = other.inn_; + onChanged(); + } + if (other.hasPersonName()) { + mergePersonName(other.getPersonName()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasPersonName()) { + + return false; + } + if (!getPersonName().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativePhysicalEntity) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object inn_ = ""; + /** + * optional string Inn = 1; + */ + public boolean hasInn() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string Inn = 1; + */ + public java.lang.String getInn() { + java.lang.Object ref = inn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + inn_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string Inn = 1; + */ + public com.google.protobuf.ByteString + getInnBytes() { + java.lang.Object ref = inn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string Inn = 1; + */ + public Builder setInn( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + inn_ = value; + onChanged(); + return this; + } + /** + * optional string Inn = 1; + */ + public Builder clearInn() { + bitField0_ = (bitField0_ & ~0x00000001); + inn_ = getDefaultInstance().getInn(); + onChanged(); + return this; + } + /** + * optional string Inn = 1; + */ + public Builder setInnBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + inn_ = value; + onChanged(); + return this; + } + + private Diadoc.Api.Proto.UserProtos.FullName personName_ = Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.UserProtos.FullName, Diadoc.Api.Proto.UserProtos.FullName.Builder, Diadoc.Api.Proto.UserProtos.FullNameOrBuilder> personNameBuilder_; + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + public boolean hasPersonName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + public Diadoc.Api.Proto.UserProtos.FullName getPersonName() { + if (personNameBuilder_ == null) { + return personName_; + } else { + return personNameBuilder_.getMessage(); + } + } + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + public Builder setPersonName(Diadoc.Api.Proto.UserProtos.FullName value) { + if (personNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + personName_ = value; + onChanged(); + } else { + personNameBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + public Builder setPersonName( + Diadoc.Api.Proto.UserProtos.FullName.Builder builderForValue) { + if (personNameBuilder_ == null) { + personName_ = builderForValue.build(); + onChanged(); + } else { + personNameBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + public Builder mergePersonName(Diadoc.Api.Proto.UserProtos.FullName value) { + if (personNameBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + personName_ != Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance()) { + personName_ = + Diadoc.Api.Proto.UserProtos.FullName.newBuilder(personName_).mergeFrom(value).buildPartial(); + } else { + personName_ = value; + } + onChanged(); + } else { + personNameBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + public Builder clearPersonName() { + if (personNameBuilder_ == null) { + personName_ = Diadoc.Api.Proto.UserProtos.FullName.getDefaultInstance(); + onChanged(); + } else { + personNameBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + public Diadoc.Api.Proto.UserProtos.FullName.Builder getPersonNameBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPersonNameFieldBuilder().getBuilder(); + } + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + public Diadoc.Api.Proto.UserProtos.FullNameOrBuilder getPersonNameOrBuilder() { + if (personNameBuilder_ != null) { + return personNameBuilder_.getMessageOrBuilder(); + } else { + return personName_; + } + } + /** + * required .Diadoc.Api.Proto.FullName PersonName = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.UserProtos.FullName, Diadoc.Api.Proto.UserProtos.FullName.Builder, Diadoc.Api.Proto.UserProtos.FullNameOrBuilder> + getPersonNameFieldBuilder() { + if (personNameBuilder_ == null) { + personNameBuilder_ = new com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.UserProtos.FullName, Diadoc.Api.Proto.UserProtos.FullName.Builder, Diadoc.Api.Proto.UserProtos.FullNameOrBuilder>( + getPersonName(), + getParentForChildren(), + isClean()); + personName_ = null; + } + return personNameBuilder_; + } + + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity) + } + + static { + defaultInstance = new PowerOfAttorneyRepresentativePhysicalEntity(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativePhysicalEntity) + } + + public interface PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntityOrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string Inn = 1; + */ + boolean hasInn(); + /** + * optional string Inn = 1; + */ + java.lang.String getInn(); + /** + * optional string Inn = 1; + */ + com.google.protobuf.ByteString + getInnBytes(); + + /** + * optional string Kpp = 2; + */ + boolean hasKpp(); + /** + * optional string Kpp = 2; + */ + java.lang.String getKpp(); + /** + * optional string Kpp = 2; + */ + com.google.protobuf.ByteString + getKppBytes(); + + /** + * required string OrganizationName = 3; + */ + boolean hasOrganizationName(); + /** + * required string OrganizationName = 3; + */ + java.lang.String getOrganizationName(); + /** + * required string OrganizationName = 3; + */ + com.google.protobuf.ByteString + getOrganizationNameBytes(); + } + /** + * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity} + */ + public static final class PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity) + PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntityOrBuilder { + // Use PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.newBuilder() to construct. + private PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity defaultInstance; + public static PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity getDefaultInstance() { + return defaultInstance; + } + + public PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + inn_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + kpp_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + organizationName_ = bs; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.class, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int INN_FIELD_NUMBER = 1; + private java.lang.Object inn_; + /** + * optional string Inn = 1; + */ + public boolean hasInn() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string Inn = 1; + */ + public java.lang.String getInn() { + java.lang.Object ref = inn_; + 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(); + if (bs.isValidUtf8()) { + inn_ = s; + } + return s; + } + } + /** + * optional string Inn = 1; + */ + public com.google.protobuf.ByteString + getInnBytes() { + java.lang.Object ref = inn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KPP_FIELD_NUMBER = 2; + private java.lang.Object kpp_; + /** + * optional string Kpp = 2; + */ + public boolean hasKpp() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string Kpp = 2; + */ + public java.lang.String getKpp() { + java.lang.Object ref = kpp_; + 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(); + if (bs.isValidUtf8()) { + kpp_ = s; + } + return s; + } + } + /** + * optional string Kpp = 2; + */ + public com.google.protobuf.ByteString + getKppBytes() { + java.lang.Object ref = kpp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kpp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATIONNAME_FIELD_NUMBER = 3; + private java.lang.Object organizationName_; + /** + * required string OrganizationName = 3; + */ + public boolean hasOrganizationName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required string OrganizationName = 3; + */ + public java.lang.String getOrganizationName() { + java.lang.Object ref = organizationName_; + 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(); + if (bs.isValidUtf8()) { + organizationName_ = s; + } + return s; + } + } + /** + * required string OrganizationName = 3; + */ + public com.google.protobuf.ByteString + getOrganizationNameBytes() { + java.lang.Object ref = organizationName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + inn_ = ""; + kpp_ = ""; + organizationName_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasOrganizationName()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getInnBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getKppBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getOrganizationNameBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getInnBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getKppBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getOrganizationNameBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity) + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.class, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.Builder.class); + } + + // Construct using Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + inn_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + kpp_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + organizationName_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity_descriptor; + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity getDefaultInstanceForType() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.getDefaultInstance(); + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity build() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity buildPartial() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity result = new Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.inn_ = inn_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.kpp_ = kpp_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.organizationName_ = organizationName_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity) { + return mergeFrom((Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity other) { + if (other == Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity.getDefaultInstance()) return this; + if (other.hasInn()) { + bitField0_ |= 0x00000001; + inn_ = other.inn_; + onChanged(); + } + if (other.hasKpp()) { + bitField0_ |= 0x00000002; + kpp_ = other.kpp_; + onChanged(); + } + if (other.hasOrganizationName()) { + bitField0_ |= 0x00000004; + organizationName_ = other.organizationName_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasOrganizationName()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object inn_ = ""; + /** + * optional string Inn = 1; + */ + public boolean hasInn() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string Inn = 1; + */ + public java.lang.String getInn() { + java.lang.Object ref = inn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + inn_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string Inn = 1; + */ + public com.google.protobuf.ByteString + getInnBytes() { + java.lang.Object ref = inn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string Inn = 1; + */ + public Builder setInn( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + inn_ = value; + onChanged(); + return this; + } + /** + * optional string Inn = 1; + */ + public Builder clearInn() { + bitField0_ = (bitField0_ & ~0x00000001); + inn_ = getDefaultInstance().getInn(); + onChanged(); + return this; + } + /** + * optional string Inn = 1; + */ + public Builder setInnBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + inn_ = value; + onChanged(); + return this; + } + + private java.lang.Object kpp_ = ""; + /** + * optional string Kpp = 2; + */ + public boolean hasKpp() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string Kpp = 2; + */ + public java.lang.String getKpp() { + java.lang.Object ref = kpp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + kpp_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string Kpp = 2; + */ + public com.google.protobuf.ByteString + getKppBytes() { + java.lang.Object ref = kpp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kpp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string Kpp = 2; + */ + public Builder setKpp( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + kpp_ = value; + onChanged(); + return this; + } + /** + * optional string Kpp = 2; + */ + public Builder clearKpp() { + bitField0_ = (bitField0_ & ~0x00000002); + kpp_ = getDefaultInstance().getKpp(); + onChanged(); + return this; + } + /** + * optional string Kpp = 2; + */ + public Builder setKppBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + kpp_ = value; + onChanged(); + return this; + } + + private java.lang.Object organizationName_ = ""; + /** + * required string OrganizationName = 3; + */ + public boolean hasOrganizationName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required string OrganizationName = 3; + */ + public java.lang.String getOrganizationName() { + java.lang.Object ref = organizationName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + organizationName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string OrganizationName = 3; + */ + public com.google.protobuf.ByteString + getOrganizationNameBytes() { + java.lang.Object ref = organizationName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string OrganizationName = 3; + */ + public Builder setOrganizationName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + organizationName_ = value; + onChanged(); + return this; + } + /** + * required string OrganizationName = 3; + */ + public Builder clearOrganizationName() { + bitField0_ = (bitField0_ & ~0x00000004); + organizationName_ = getDefaultInstance().getOrganizationName(); + onChanged(); + return this; + } + /** + * required string OrganizationName = 3; + */ + public Builder setOrganizationNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + organizationName_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity) + } + + static { + defaultInstance = new PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity) + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyFullId_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyFullId_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorney_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorney_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyIssuer_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyIssuer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyIssuerLegalEntity_descriptor; + private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyIssuerLegalEntity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor @@ -20824,6 +26031,31 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFu private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyContentV2_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentative_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentative_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeLegalEntity_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeLegalEntity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeIndividualEntity_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeIndividualEntity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativePhysicalEntity_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativePhysicalEntity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -20837,7 +26069,7 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFu "\022!Diadoc.Api.Proto.PowersOfAttorney\032\020Con" + "tent_v3.proto\032\017Timestamp.proto\032\nUser.pro" + "to\"F\n\025PowerOfAttorneyFullId\022\032\n\022Registrat" + - "ionNumber\030\001 \002(\t\022\021\n\tIssuerInn\030\002 \002(\t\"\365\004\n\017P" + + "ionNumber\030\001 \002(\t\022\021\n\tIssuerInn\030\002 \002(\t\"\320\005\n\017P" + "owerOfAttorney\022H\n\006FullId\030\001 \002(\01328.Diadoc." + "Api.Proto.PowersOfAttorney.PowerOfAttorn" + "eyFullId\022H\n\006Issuer\030\002 \002(\01328.Diadoc.Api.Pr" + @@ -20853,91 +26085,130 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyProtos.PowerOfAttorneyFu "pi.Proto.PowersOfAttorney.PowerOfAttorne" + "yPermissionsInfo\022X\n\016DelegationInfo\030\n \001(\013" + "2@.Diadoc.Api.Proto.PowersOfAttorney.Pow", - "erOfAttorneyDelegationInfo\"\362\003\n\025PowerOfAt" + - "torneyIssuer\022]\n\004Type\030\001 \001(\0162<.Diadoc.Api." + - "Proto.PowersOfAttorney.PowerOfAttorneyIs" + - "suerType:\021UnknownIssuerType\022X\n\013LegalEnti" + - "ty\030\002 \001(\0132C.Diadoc.Api.Proto.PowersOfAtto" + - "rney.PowerOfAttorneyIssuerLegalEntity\022\\\n" + - "\rForeignEntity\030\003 \001(\0132E.Diadoc.Api.Proto." + - "PowersOfAttorney.PowerOfAttorneyIssuerFo" + - "reignEntity\022b\n\020IndividualEntity\030\004 \001(\0132H." + - "Diadoc.Api.Proto.PowersOfAttorney.PowerO", - "fAttorneyIssuerIndividualEntity\022^\n\016Physi" + - "calEntity\030\005 \001(\0132F.Diadoc.Api.Proto.Power" + - "sOfAttorney.PowerOfAttorneyIssuerPhysica" + - "lEntity\"V\n PowerOfAttorneyIssuerLegalEnt" + - "ity\022\013\n\003Inn\030\001 \002(\t\022\013\n\003Kpp\030\002 \002(\t\022\030\n\020Organiz" + - "ationName\030\003 \002(\t\"X\n\"PowerOfAttorneyIssuer" + - "ForeignEntity\022\013\n\003Inn\030\001 \001(\t\022\013\n\003Kpp\030\002 \001(\t\022" + - "\030\n\020OrganizationName\030\003 \002(\t\"N\n%PowerOfAtto" + - "rneyIssuerIndividualEntity\022\013\n\003Inn\030\001 \002(\t\022" + - "\030\n\020OrganizationName\030\003 \002(\t\"b\n#PowerOfAtto", - "rneyIssuerPhysicalEntity\022\013\n\003Inn\030\001 \002(\t\022.\n" + - "\nPersonName\030\002 \001(\0132\032.Diadoc.Api.Proto.Ful" + - "lName\"\266\001\n\030PowerOfAttorneyConfidant\022.\n\nPe" + - "rsonName\030\001 \002(\0132\032.Diadoc.Api.Proto.FullNa" + - "me\022\013\n\003Inn\030\002 \002(\t\022]\n\014Organization\030\003 \001(\0132G." + + "erOfAttorneyDelegationInfo\022Y\n\017Representa" + + "tives\030\013 \003(\0132@.Diadoc.Api.Proto.PowersOfA" + + "ttorney.PowerOfAttorneyRepresentative\"\362\003" + + "\n\025PowerOfAttorneyIssuer\022]\n\004Type\030\001 \001(\0162<." + "Diadoc.Api.Proto.PowersOfAttorney.PowerO" + - "fAttorneyConfidantOrganization\"N\n$PowerO" + - "fAttorneyConfidantOrganization\022\013\n\003Inn\030\001 " + - "\002(\t\022\013\n\003Kpp\030\002 \001(\t\022\014\n\004Name\030\003 \002(\t\"\256\001\n\036Power" + - "OfAttorneyPermissionsInfo\022R\n\013Permissions", - "\030\001 \003(\0132=.Diadoc.Api.Proto.PowersOfAttorn" + - "ey.PowerOfAttorneyPermissions\022\036\n\026Transfe" + - "rPermissionLoss\030\002 \001(\t\022\030\n\020JointPermission" + - "s\030\003 \002(\t\"\262\001\n\032PowerOfAttorneyPermissions\022\014" + - "\n\004Type\030\001 \002(\t\022\026\n\016TextPermission\030\002 \001(\t\022n\n\031" + - "MachineReadablePermission\030\003 \003(\0132K.Diadoc" + - ".Api.Proto.PowersOfAttorney.PowerOfAttor" + - "neyMachineReadablePermission\"\256\001\n(PowerOf" + - "AttorneyMachineReadablePermission\022\020\n\010Mne" + - "monic\030\001 \001(\t\022\014\n\004Code\030\002 \002(\t\022\014\n\004Name\030\003 \002(\t\022", - "T\n\014Restrictions\030\004 \003(\0132>.Diadoc.Api.Proto" + - ".PowersOfAttorney.PowerOfAttorneyRestric" + - "tions\"~\n\033PowerOfAttorneyRestrictions\022\n\n\002" + - "Id\030\001 \002(\005\022\014\n\004Code\030\002 \002(\t\022\014\n\004Name\030\003 \002(\t\022\021\n\t" + - "ValueName\030\004 \001(\t\022\021\n\tValueCode\030\005 \001(\t\022\021\n\tVa" + - "lueText\030\006 \001(\t\"\267\001\n\031PowerOfAttorneyToRegis" + - "ter\022H\n\006FullId\030\001 \001(\01328.Diadoc.Api.Proto.P" + - "owersOfAttorney.PowerOfAttorneyFullId\022P\n" + - "\007Content\030\002 \001(\0132?.Diadoc.Api.Proto.Powers" + - "OfAttorney.PowerOfAttorneySignedContent\"", - "~\n\034PowerOfAttorneySignedContent\022-\n\007Conte" + - "nt\030\001 \002(\0132\034.Diadoc.Api.Proto.Content_v3\022/" + - "\n\tSignature\030\002 \002(\0132\034.Diadoc.Api.Proto.Con" + - "tent_v3\"\241\002\n\035PowerOfAttorneyRegisterResul" + - "t\022\027\n\017OperationStatus\030\001 \002(\t\022K\n\017PowerOfAtt" + - "orney\030\002 \001(\01322.Diadoc.Api.Proto.PowersOfA" + - "ttorney.PowerOfAttorney\022H\n\006Status\030\003 \001(\0132" + - "8.Diadoc.Api.Proto.PowersOfAttorney.Powe" + - "rOfAttorneyStatus\022P\n\006Errors\030\004 \003(\0132@.Diad" + - "oc.Api.Proto.PowersOfAttorney.PowerOfAtt", - "orneyOperationError\"Y\n\025PowerOfAttorneySt" + - "atus\022\016\n\006Status\030\001 \002(\t\0220\n\013LastCheckAt\030\002 \001(" + - "\0132\033.Diadoc.Api.Proto.Timestamp\";\n\035PowerO" + - "fAttorneyOperationError\022\014\n\004Code\030\001 \002(\t\022\014\n" + - "\004Text\030\002 \002(\t\"\260\001\n\035PowerOfAttorneyDelegatio" + - "nInfo\022\036\n\026RootRegistrationNumber\030\001 \002(\t\022 \n" + - "\030ParentRegistrationNumber\030\002 \001(\t\022M\n\013RootI" + - "ssuers\030\003 \003(\01328.Diadoc.Api.Proto.PowersOf" + - "Attorney.PowerOfAttorneyIssuer\"<\n\026PowerO" + - "fAttorneyContent\022\017\n\007Content\030\001 \002(\014\022\021\n\tSig", - "nature\030\002 \002(\014\"\304\001\n\036PowerOfAttorneyContentR" + - "esponse\022L\n\007Content\030\001 \002(\0132;.Diadoc.Api.Pr" + - "oto.PowersOfAttorney.PowerOfAttorneyCont" + - "entV2\022T\n\017DelegationChain\030\002 \003(\0132;.Diadoc." + + "fAttorneyIssuerType:\021UnknownIssuerType\022X" + + "\n\013LegalEntity\030\002 \001(\0132C.Diadoc.Api.Proto.P" + + "owersOfAttorney.PowerOfAttorneyIssuerLeg" + + "alEntity\022\\\n\rForeignEntity\030\003 \001(\0132E.Diadoc" + + ".Api.Proto.PowersOfAttorney.PowerOfAttor", + "neyIssuerForeignEntity\022b\n\020IndividualEnti" + + "ty\030\004 \001(\0132H.Diadoc.Api.Proto.PowersOfAtto" + + "rney.PowerOfAttorneyIssuerIndividualEnti" + + "ty\022^\n\016PhysicalEntity\030\005 \001(\0132F.Diadoc.Api." + + "Proto.PowersOfAttorney.PowerOfAttorneyIs" + + "suerPhysicalEntity\"V\n PowerOfAttorneyIss" + + "uerLegalEntity\022\013\n\003Inn\030\001 \002(\t\022\013\n\003Kpp\030\002 \002(\t" + + "\022\030\n\020OrganizationName\030\003 \002(\t\"X\n\"PowerOfAtt" + + "orneyIssuerForeignEntity\022\013\n\003Inn\030\001 \001(\t\022\013\n" + + "\003Kpp\030\002 \001(\t\022\030\n\020OrganizationName\030\003 \002(\t\"N\n%", + "PowerOfAttorneyIssuerIndividualEntity\022\013\n" + + "\003Inn\030\001 \002(\t\022\030\n\020OrganizationName\030\003 \002(\t\"b\n#" + + "PowerOfAttorneyIssuerPhysicalEntity\022\013\n\003I" + + "nn\030\001 \002(\t\022.\n\nPersonName\030\002 \001(\0132\032.Diadoc.Ap" + + "i.Proto.FullName\"\266\001\n\030PowerOfAttorneyConf" + + "idant\022.\n\nPersonName\030\001 \002(\0132\032.Diadoc.Api.P" + + "roto.FullName\022\013\n\003Inn\030\002 \002(\t\022]\n\014Organizati" + + "on\030\003 \001(\0132G.Diadoc.Api.Proto.PowersOfAtto" + + "rney.PowerOfAttorneyConfidantOrganizatio" + + "n\"N\n$PowerOfAttorneyConfidantOrganizatio", + "n\022\013\n\003Inn\030\001 \002(\t\022\013\n\003Kpp\030\002 \001(\t\022\014\n\004Name\030\003 \002(" + + "\t\"\256\001\n\036PowerOfAttorneyPermissionsInfo\022R\n\013" + + "Permissions\030\001 \003(\0132=.Diadoc.Api.Proto.Pow" + + "ersOfAttorney.PowerOfAttorneyPermissions" + + "\022\036\n\026TransferPermissionLoss\030\002 \001(\t\022\030\n\020Join" + + "tPermissions\030\003 \002(\t\"\262\001\n\032PowerOfAttorneyPe" + + "rmissions\022\014\n\004Type\030\001 \002(\t\022\026\n\016TextPermissio" + + "n\030\002 \001(\t\022n\n\031MachineReadablePermission\030\003 \003" + + "(\0132K.Diadoc.Api.Proto.PowersOfAttorney.P" + + "owerOfAttorneyMachineReadablePermission\"", + "\256\001\n(PowerOfAttorneyMachineReadablePermis" + + "sion\022\020\n\010Mnemonic\030\001 \001(\t\022\014\n\004Code\030\002 \002(\t\022\014\n\004" + + "Name\030\003 \002(\t\022T\n\014Restrictions\030\004 \003(\0132>.Diado" + + "c.Api.Proto.PowersOfAttorney.PowerOfAtto" + + "rneyRestrictions\"~\n\033PowerOfAttorneyRestr" + + "ictions\022\n\n\002Id\030\001 \002(\005\022\014\n\004Code\030\002 \002(\t\022\014\n\004Nam" + + "e\030\003 \002(\t\022\021\n\tValueName\030\004 \001(\t\022\021\n\tValueCode\030" + + "\005 \001(\t\022\021\n\tValueText\030\006 \001(\t\"\267\001\n\031PowerOfAtto" + + "rneyToRegister\022H\n\006FullId\030\001 \001(\01328.Diadoc." + + "Api.Proto.PowersOfAttorney.PowerOfAttorn", + "eyFullId\022P\n\007Content\030\002 \001(\0132?.Diadoc.Api.P" + + "roto.PowersOfAttorney.PowerOfAttorneySig" + + "nedContent\"~\n\034PowerOfAttorneySignedConte" + + "nt\022-\n\007Content\030\001 \002(\0132\034.Diadoc.Api.Proto.C" + + "ontent_v3\022/\n\tSignature\030\002 \002(\0132\034.Diadoc.Ap" + + "i.Proto.Content_v3\"\241\002\n\035PowerOfAttorneyRe" + + "gisterResult\022\027\n\017OperationStatus\030\001 \002(\t\022K\n" + + "\017PowerOfAttorney\030\002 \001(\01322.Diadoc.Api.Prot" + + "o.PowersOfAttorney.PowerOfAttorney\022H\n\006St" + + "atus\030\003 \001(\01328.Diadoc.Api.Proto.PowersOfAt", + "torney.PowerOfAttorneyStatus\022P\n\006Errors\030\004" + + " \003(\0132@.Diadoc.Api.Proto.PowersOfAttorney" + + ".PowerOfAttorneyOperationError\"Y\n\025PowerO" + + "fAttorneyStatus\022\016\n\006Status\030\001 \002(\t\0220\n\013LastC" + + "heckAt\030\002 \001(\0132\033.Diadoc.Api.Proto.Timestam" + + "p\";\n\035PowerOfAttorneyOperationError\022\014\n\004Co" + + "de\030\001 \002(\t\022\014\n\004Text\030\002 \002(\t\"\260\001\n\035PowerOfAttorn" + + "eyDelegationInfo\022\036\n\026RootRegistrationNumb" + + "er\030\001 \002(\t\022 \n\030ParentRegistrationNumber\030\002 \001" + + "(\t\022M\n\013RootIssuers\030\003 \003(\01328.Diadoc.Api.Pro", + "to.PowersOfAttorney.PowerOfAttorneyIssue" + + "r\"<\n\026PowerOfAttorneyContent\022\017\n\007Content\030\001" + + " \002(\014\022\021\n\tSignature\030\002 \002(\014\"\304\001\n\036PowerOfAttor" + + "neyContentResponse\022L\n\007Content\030\001 \002(\0132;.Di" + + "adoc.Api.Proto.PowersOfAttorney.PowerOfA" + + "ttorneyContentV2\022T\n\017DelegationChain\030\002 \003(" + + "\0132;.Diadoc.Api.Proto.PowersOfAttorney.Po" + + "werOfAttorneyContentV2\"\210\001\n\030PowerOfAttorn" + + "eyContentV2\022\017\n\007Content\030\001 \002(\014\022\021\n\tSignatur" + + "e\030\002 \002(\014\022H\n\006FullId\030\003 \002(\01328.Diadoc.Api.Pro", + "to.PowersOfAttorney.PowerOfAttorneyFullI" + + "d\"\265\005\n\035PowerOfAttorneyRepresentative\022m\n\004T" + + "ype\030\001 \001(\0162D.Diadoc.Api.Proto.PowersOfAtt" + + "orney.PowerOfAttorneyRepresentativeType:" + + "\031UnknownRepresentativeType\022`\n\013LegalEntit" + + "y\030\002 \001(\0132K.Diadoc.Api.Proto.PowersOfAttor" + + "ney.PowerOfAttorneyRepresentativeLegalEn" + + "tity\022j\n\020IndividualEntity\030\003 \001(\0132P.Diadoc." + "Api.Proto.PowersOfAttorney.PowerOfAttorn" + - "eyContentV2\"\210\001\n\030PowerOfAttorneyContentV2" + - "\022\017\n\007Content\030\001 \002(\014\022\021\n\tSignature\030\002 \002(\014\022H\n\006" + - "FullId\030\003 \002(\01328.Diadoc.Api.Proto.PowersOf" + - "Attorney.PowerOfAttorneyFullId*\200\001\n\031Power" + - "OfAttorneyIssuerType\022\025\n\021UnknownIssuerTyp", - "e\020\000\022\017\n\013LegalEntity\020\001\022\021\n\rForeignEntity\020\002\022" + - "\024\n\020IndividualEntity\020\003\022\022\n\016PhysicalEntity\020" + - "\004*V\n\032PowerOfAttorneySendingType\022\013\n\007Unkno" + - "wn\020\000\022\014\n\010Metadata\020\001\022\010\n\004File\020\002\022\023\n\017Document" + - "Content\020\003B\027B\025PowerOfAttorneyProtos" + "eyRepresentativeIndividualEntity\022f\n\016Phys", + "icalEntity\030\004 \001(\0132N.Diadoc.Api.Proto.Powe" + + "rsOfAttorney.PowerOfAttorneyRepresentati" + + "vePhysicalEntity\022j\n\025LegalSubsidiaryEntit" + + "y\030\005 \001(\0132K.Diadoc.Api.Proto.PowersOfAttor" + + "ney.PowerOfAttorneyRepresentativeLegalEn" + + "tity\022\202\001\n\034ForeignLegalSubsidiaryEntity\030\006 " + + "\001(\0132\\.Diadoc.Api.Proto.PowersOfAttorney." + + "PowerOfAttorneyRepresentativeForeignLega" + + "lSubsidiaryEntity\"\306\001\n(PowerOfAttorneyRep" + + "resentativeLegalEntity\022\013\n\003Inn\030\001 \001(\t\022\013\n\003K", + "pp\030\002 \002(\t\022\030\n\020OrganizationName\030\003 \002(\t\022f\n\016Ph" + + "ysicalEntity\030\004 \003(\0132N.Diadoc.Api.Proto.Po" + + "wersOfAttorney.PowerOfAttorneyRepresenta" + + "tivePhysicalEntity\"V\n-PowerOfAttorneyRep" + + "resentativeIndividualEntity\022\013\n\003Inn\030\001 \002(\t" + + "\022\030\n\020OrganizationName\030\002 \002(\t\"j\n+PowerOfAtt" + + "orneyRepresentativePhysicalEntity\022\013\n\003Inn" + + "\030\001 \001(\t\022.\n\nPersonName\030\002 \002(\0132\032.Diadoc.Api." + + "Proto.FullName\"o\n9PowerOfAttorneyReprese" + + "ntativeForeignLegalSubsidiaryEntity\022\013\n\003I", + "nn\030\001 \001(\t\022\013\n\003Kpp\030\002 \001(\t\022\030\n\020OrganizationNam" + + "e\030\003 \002(\t*\200\001\n\031PowerOfAttorneyIssuerType\022\025\n" + + "\021UnknownIssuerType\020\000\022\017\n\013LegalEntity\020\001\022\021\n" + + "\rForeignEntity\020\002\022\024\n\020IndividualEntity\020\003\022\022" + + "\n\016PhysicalEntity\020\004*V\n\032PowerOfAttorneySen" + + "dingType\022\013\n\007Unknown\020\000\022\014\n\010Metadata\020\001\022\010\n\004F" + + "ile\020\002\022\023\n\017DocumentContent\020\003*\200\002\n!PowerOfAt" + + "torneyRepresentativeType\022\035\n\031UnknownRepre" + + "sentativeType\020\000\022\035\n\031RepresentativeLegalEn" + + "tity\020\001\022\"\n\036RepresentativeIndividualEntity", + "\020\002\022 \n\034RepresentativePhysicalEntity\020\003\022\'\n#" + + "RepresentativeLegalSubsidiaryEntity\020\004\022.\n" + + "*RepresentativeForeignLegalSubsidiaryEnt" + + "ity\020\005B\027B\025PowerOfAttorneyProtos" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -20965,7 +26236,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorney_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorney_descriptor, - new java.lang.String[] { "FullId", "Issuer", "Confidant", "StartAt", "ExpireAt", "System", "IdFile", "DelegationChain", "PermissionsInfo", "DelegationInfo", }); + new java.lang.String[] { "FullId", "Issuer", "Confidant", "StartAt", "ExpireAt", "System", "IdFile", "DelegationChain", "PermissionsInfo", "DelegationInfo", "Representatives", }); internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyIssuer_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyIssuer_fieldAccessorTable = new @@ -21086,6 +26357,36 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyContentV2_descriptor, new java.lang.String[] { "Content", "Signature", "FullId", }); + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentative_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentative_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentative_descriptor, + new java.lang.String[] { "Type", "LegalEntity", "IndividualEntity", "PhysicalEntity", "LegalSubsidiaryEntity", "ForeignLegalSubsidiaryEntity", }); + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeLegalEntity_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeLegalEntity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeLegalEntity_descriptor, + new java.lang.String[] { "Inn", "Kpp", "OrganizationName", "PhysicalEntity", }); + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeIndividualEntity_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeIndividualEntity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeIndividualEntity_descriptor, + new java.lang.String[] { "Inn", "OrganizationName", }); + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativePhysicalEntity_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativePhysicalEntity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativePhysicalEntity_descriptor, + new java.lang.String[] { "Inn", "PersonName", }); + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity_descriptor, + new java.lang.String[] { "Inn", "Kpp", "OrganizationName", }); Diadoc.Api.Proto.Content_v3Protos.getDescriptor(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); Diadoc.Api.Proto.UserProtos.getDescriptor();