From 75600041ff37ec35ddff9bae1b4d70fbf324b96d Mon Sep 17 00:00:00 2001 From: "nm.suvorov" Date: Tue, 16 Jul 2024 12:31:47 +0300 Subject: [PATCH 1/2] Extended Poa Validation Contracts --- .../PowerOfAttorneyValidation.proto | 15 +- .../PowerOfAttorneyValidationProtos.java | 2216 ++++++++++++++++- 2 files changed, 2113 insertions(+), 118 deletions(-) diff --git a/proto/PowersOfAttorney/PowerOfAttorneyValidation.proto b/proto/PowersOfAttorney/PowerOfAttorneyValidation.proto index cd4fbdd9..679ce5c8 100644 --- a/proto/PowersOfAttorney/PowerOfAttorneyValidation.proto +++ b/proto/PowersOfAttorney/PowerOfAttorneyValidation.proto @@ -7,7 +7,9 @@ message PowerOfAttorneyValidationStatus { optional Severity Severity = 1 [default = UnknownSeverity]; optional PowerOfAttorneyValidationStatusNamedId StatusNamedId = 2 [default = UnknownStatus]; optional string StatusText = 3; - repeated PowerOfAttorneyValidationError Errors = 4; + repeated PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; + optional ValidationProtocol ValidationProtocol = 5; + optional PowerOfAttorneyValidationError OperationError = 6; } enum PowerOfAttorneyValidationStatusNamedId { @@ -17,6 +19,7 @@ enum PowerOfAttorneyValidationStatusNamedId { IsNotValid = 3; ValidationError = 4; IsNotAttached = 5; + HasWarnings = 6; } message PowerOfAttorneyValidationError { @@ -37,3 +40,13 @@ message ConfidantCertificateToPrevalidate { message PowerOfAttorneyPrevalidateResult { required PowerOfAttorneyValidationStatus PrevalidateStatus = 1; } + +message ValidationProtocol { + repeated ValidationCheckResult CheckResults = 1; +} + +message ValidationCheckResult { + required string Status = 1; + required string Name = 2; + optional PowerOfAttorneyValidationError Error = 3; +} diff --git a/src/main/java/Diadoc/Api/Proto/PowersOfAttorney/PowerOfAttorneyValidationProtos.java b/src/main/java/Diadoc/Api/Proto/PowersOfAttorney/PowerOfAttorneyValidationProtos.java index 6884836f..a4ea0df8 100644 --- a/src/main/java/Diadoc/Api/Proto/PowersOfAttorney/PowerOfAttorneyValidationProtos.java +++ b/src/main/java/Diadoc/Api/Proto/PowersOfAttorney/PowerOfAttorneyValidationProtos.java @@ -41,6 +41,10 @@ public enum PowerOfAttorneyValidationStatusNamedId * IsNotAttached = 5; */ IsNotAttached(5, 5), + /** + * HasWarnings = 6; + */ + HasWarnings(6, 6), ; /** @@ -71,6 +75,10 @@ public enum PowerOfAttorneyValidationStatusNamedId * IsNotAttached = 5; */ public static final int IsNotAttached_VALUE = 5; + /** + * HasWarnings = 6; + */ + public static final int HasWarnings_VALUE = 6; public final int getNumber() { return value; } @@ -83,6 +91,7 @@ public static PowerOfAttorneyValidationStatusNamedId valueOf(int value) { case 3: return IsNotValid; case 4: return ValidationError; case 5: return IsNotAttached; + case 6: return HasWarnings; default: return null; } } @@ -171,28 +180,54 @@ public interface PowerOfAttorneyValidationStatusOrBuilder extends getStatusTextBytes(); /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - java.util.List + @java.lang.Deprecated java.util.List getErrorsList(); /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError getErrors(int index); + @java.lang.Deprecated Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError getErrors(int index); /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - int getErrorsCount(); + @java.lang.Deprecated int getErrorsCount(); /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - java.util.List + @java.lang.Deprecated java.util.List getErrorsOrBuilderList(); /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder getErrorsOrBuilder( + @java.lang.Deprecated Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder getErrorsOrBuilder( int index); + + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + boolean hasValidationProtocol(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol getValidationProtocol(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocolOrBuilder getValidationProtocolOrBuilder(); + + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + boolean hasOperationError(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError getOperationError(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder getOperationErrorOrBuilder(); } /** * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus} @@ -282,6 +317,32 @@ private PowerOfAttorneyValidationStatus( errors_.add(input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.PARSER, extensionRegistry)); break; } + case 42: { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = validationProtocol_.toBuilder(); + } + validationProtocol_ = input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(validationProtocol_); + validationProtocol_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 50: { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBuilder = operationError_.toBuilder(); + } + operationError_ = input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operationError_); + operationError_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -400,43 +461,87 @@ public java.lang.String getStatusText() { public static final int ERRORS_FIELD_NUMBER = 4; private java.util.List errors_; /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public java.util.List getErrorsList() { + @java.lang.Deprecated public java.util.List getErrorsList() { return errors_; } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public java.util.List + @java.lang.Deprecated public java.util.List getErrorsOrBuilderList() { return errors_; } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public int getErrorsCount() { + @java.lang.Deprecated public int getErrorsCount() { return errors_.size(); } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError getErrors(int index) { + @java.lang.Deprecated public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError getErrors(int index) { return errors_.get(index); } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder getErrorsOrBuilder( + @java.lang.Deprecated public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder getErrorsOrBuilder( int index) { return errors_.get(index); } + public static final int VALIDATIONPROTOCOL_FIELD_NUMBER = 5; + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol validationProtocol_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + public boolean hasValidationProtocol() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol getValidationProtocol() { + return validationProtocol_; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocolOrBuilder getValidationProtocolOrBuilder() { + return validationProtocol_; + } + + public static final int OPERATIONERROR_FIELD_NUMBER = 6; + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError operationError_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + public boolean hasOperationError() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError getOperationError() { + return operationError_; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder getOperationErrorOrBuilder() { + return operationError_; + } + private void initFields() { severity_ = Diadoc.Api.Proto.SeverityProtos.Severity.UnknownSeverity; statusNamedId_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationStatusNamedId.UnknownStatus; statusText_ = ""; errors_ = java.util.Collections.emptyList(); + validationProtocol_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.getDefaultInstance(); + operationError_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -450,6 +555,18 @@ public final boolean isInitialized() { return false; } } + if (hasValidationProtocol()) { + if (!getValidationProtocol().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasOperationError()) { + if (!getOperationError().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } memoizedIsInitialized = 1; return true; } @@ -469,6 +586,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < errors_.size(); i++) { output.writeMessage(4, errors_.get(i)); } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(5, validationProtocol_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(6, operationError_); + } getUnknownFields().writeTo(output); } @@ -494,6 +617,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, errors_.get(i)); } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, validationProtocol_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, operationError_); + } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; @@ -604,6 +735,8 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getErrorsFieldBuilder(); + getValidationProtocolFieldBuilder(); + getOperationErrorFieldBuilder(); } } private static Builder create() { @@ -624,6 +757,18 @@ public Builder clear() { } else { errorsBuilder_.clear(); } + if (validationProtocolBuilder_ == null) { + validationProtocol_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.getDefaultInstance(); + } else { + validationProtocolBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (operationErrorBuilder_ == null) { + operationError_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.getDefaultInstance(); + } else { + operationErrorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -673,6 +818,22 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf } else { result.errors_ = errorsBuilder_.build(); } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + if (validationProtocolBuilder_ == null) { + result.validationProtocol_ = validationProtocol_; + } else { + result.validationProtocol_ = validationProtocolBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + if (operationErrorBuilder_ == null) { + result.operationError_ = operationError_; + } else { + result.operationError_ = operationErrorBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -726,6 +887,12 @@ public Builder mergeFrom(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValida } } } + if (other.hasValidationProtocol()) { + mergeValidationProtocol(other.getValidationProtocol()); + } + if (other.hasOperationError()) { + mergeOperationError(other.getOperationError()); + } this.mergeUnknownFields(other.getUnknownFields()); return this; } @@ -737,6 +904,18 @@ public final boolean isInitialized() { return false; } } + if (hasValidationProtocol()) { + if (!getValidationProtocol().isInitialized()) { + + return false; + } + } + if (hasOperationError()) { + if (!getOperationError().isInitialized()) { + + return false; + } + } return true; } @@ -918,9 +1097,9 @@ private void ensureErrorsIsMutable() { Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder> errorsBuilder_; /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public java.util.List getErrorsList() { + @java.lang.Deprecated public java.util.List getErrorsList() { if (errorsBuilder_ == null) { return java.util.Collections.unmodifiableList(errors_); } else { @@ -928,9 +1107,9 @@ public java.util.Listrepeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public int getErrorsCount() { + @java.lang.Deprecated public int getErrorsCount() { if (errorsBuilder_ == null) { return errors_.size(); } else { @@ -938,9 +1117,9 @@ public int getErrorsCount() { } } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError getErrors(int index) { + @java.lang.Deprecated public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError getErrors(int index) { if (errorsBuilder_ == null) { return errors_.get(index); } else { @@ -948,9 +1127,9 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf } } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Builder setErrors( + @java.lang.Deprecated public Builder setErrors( int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError value) { if (errorsBuilder_ == null) { if (value == null) { @@ -965,9 +1144,9 @@ public Builder setErrors( return this; } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Builder setErrors( + @java.lang.Deprecated public Builder setErrors( int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); @@ -979,9 +1158,9 @@ public Builder setErrors( return this; } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Builder addErrors(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError value) { + @java.lang.Deprecated public Builder addErrors(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -995,9 +1174,9 @@ public Builder addErrors(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValida return this; } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Builder addErrors( + @java.lang.Deprecated public Builder addErrors( int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError value) { if (errorsBuilder_ == null) { if (value == null) { @@ -1012,9 +1191,9 @@ public Builder addErrors( return this; } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Builder addErrors( + @java.lang.Deprecated public Builder addErrors( Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); @@ -1026,9 +1205,9 @@ public Builder addErrors( return this; } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Builder addErrors( + @java.lang.Deprecated public Builder addErrors( int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); @@ -1040,9 +1219,9 @@ public Builder addErrors( return this; } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Builder addAllErrors( + @java.lang.Deprecated public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); @@ -1055,9 +1234,9 @@ public Builder addAllErrors( return this; } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Builder clearErrors() { + @java.lang.Deprecated public Builder clearErrors() { if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); @@ -1068,9 +1247,9 @@ public Builder clearErrors() { return this; } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Builder removeErrors(int index) { + @java.lang.Deprecated public Builder removeErrors(int index) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.remove(index); @@ -1081,16 +1260,16 @@ public Builder removeErrors(int index) { return this; } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder getErrorsBuilder( + @java.lang.Deprecated public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder getErrorsBuilder( int index) { return getErrorsFieldBuilder().getBuilder(index); } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder getErrorsOrBuilder( + @java.lang.Deprecated public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder getErrorsOrBuilder( int index) { if (errorsBuilder_ == null) { return errors_.get(index); } else { @@ -1098,9 +1277,9 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf } } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public java.util.List + @java.lang.Deprecated public java.util.List getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); @@ -1109,24 +1288,24 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf } } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder addErrorsBuilder() { + @java.lang.Deprecated public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder addErrorsBuilder() { return getErrorsFieldBuilder().addBuilder( Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.getDefaultInstance()); } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder addErrorsBuilder( + @java.lang.Deprecated public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder addErrorsBuilder( int index) { return getErrorsFieldBuilder().addBuilder( index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.getDefaultInstance()); } /** - * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4; + * repeated .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Errors = 4 [deprecated = true]; */ - public java.util.List + @java.lang.Deprecated public java.util.List getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } @@ -1145,6 +1324,238 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf return errorsBuilder_; } + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol validationProtocol_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocolOrBuilder> validationProtocolBuilder_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + public boolean hasValidationProtocol() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol getValidationProtocol() { + if (validationProtocolBuilder_ == null) { + return validationProtocol_; + } else { + return validationProtocolBuilder_.getMessage(); + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + public Builder setValidationProtocol(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol value) { + if (validationProtocolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + validationProtocol_ = value; + onChanged(); + } else { + validationProtocolBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + public Builder setValidationProtocol( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.Builder builderForValue) { + if (validationProtocolBuilder_ == null) { + validationProtocol_ = builderForValue.build(); + onChanged(); + } else { + validationProtocolBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + public Builder mergeValidationProtocol(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol value) { + if (validationProtocolBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + validationProtocol_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.getDefaultInstance()) { + validationProtocol_ = + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.newBuilder(validationProtocol_).mergeFrom(value).buildPartial(); + } else { + validationProtocol_ = value; + } + onChanged(); + } else { + validationProtocolBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + public Builder clearValidationProtocol() { + if (validationProtocolBuilder_ == null) { + validationProtocol_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.getDefaultInstance(); + onChanged(); + } else { + validationProtocolBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.Builder getValidationProtocolBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getValidationProtocolFieldBuilder().getBuilder(); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocolOrBuilder getValidationProtocolOrBuilder() { + if (validationProtocolBuilder_ != null) { + return validationProtocolBuilder_.getMessageOrBuilder(); + } else { + return validationProtocol_; + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol ValidationProtocol = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocolOrBuilder> + getValidationProtocolFieldBuilder() { + if (validationProtocolBuilder_ == null) { + validationProtocolBuilder_ = new com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocolOrBuilder>( + getValidationProtocol(), + getParentForChildren(), + isClean()); + validationProtocol_ = null; + } + return validationProtocolBuilder_; + } + + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError operationError_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder> operationErrorBuilder_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + public boolean hasOperationError() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError getOperationError() { + if (operationErrorBuilder_ == null) { + return operationError_; + } else { + return operationErrorBuilder_.getMessage(); + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + public Builder setOperationError(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError value) { + if (operationErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operationError_ = value; + onChanged(); + } else { + operationErrorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + public Builder setOperationError( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder builderForValue) { + if (operationErrorBuilder_ == null) { + operationError_ = builderForValue.build(); + onChanged(); + } else { + operationErrorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + public Builder mergeOperationError(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError value) { + if (operationErrorBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020) && + operationError_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.getDefaultInstance()) { + operationError_ = + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.newBuilder(operationError_).mergeFrom(value).buildPartial(); + } else { + operationError_ = value; + } + onChanged(); + } else { + operationErrorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + public Builder clearOperationError() { + if (operationErrorBuilder_ == null) { + operationError_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.getDefaultInstance(); + onChanged(); + } else { + operationErrorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder getOperationErrorBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getOperationErrorFieldBuilder().getBuilder(); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder getOperationErrorOrBuilder() { + if (operationErrorBuilder_ != null) { + return operationErrorBuilder_.getMessageOrBuilder(); + } else { + return operationError_; + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError OperationError = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder> + getOperationErrorFieldBuilder() { + if (operationErrorBuilder_ == null) { + operationErrorBuilder_ = new com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder>( + getOperationError(), + getParentForChildren(), + isClean()); + operationError_ = null; + } + return operationErrorBuilder_; + } + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus) } @@ -3530,68 +3941,1627 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyPrevalidateResult) } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyValidationStatus_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyValidationStatus_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyValidationError_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyValidationError_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyPrevalidateRequest_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyPrevalidateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Diadoc_Api_Proto_PowersOfAttorney_ConfidantCertificateToPrevalidate_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Diadoc_Api_Proto_PowersOfAttorney_ConfidantCertificateToPrevalidate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyPrevalidateResult_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyPrevalidateResult_fieldAccessorTable; + public interface ValidationProtocolOrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol) + com.google.protobuf.MessageOrBuilder { - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + java.util.List + getCheckResultsList(); + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult getCheckResults(int index); + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + int getCheckResultsCount(); + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + java.util.List + getCheckResultsOrBuilderList(); + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResultOrBuilder getCheckResultsOrBuilder( + int index); } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0PowersOfAttorney/PowerOfAttorneyValida" + - "tion.proto\022!Diadoc.Api.Proto.PowersOfAtt" + - "orney\032\016Severity.proto\032\020Content_v3.proto\"" + - "\270\002\n\037PowerOfAttorneyValidationStatus\022=\n\010S" + - "everity\030\001 \001(\0162\032.Diadoc.Api.Proto.Severit" + - "y:\017UnknownSeverity\022o\n\rStatusNamedId\030\002 \001(" + - "\0162I.Diadoc.Api.Proto.PowersOfAttorney.Po" + - "werOfAttorneyValidationStatusNamedId:\rUn" + - "knownStatus\022\022\n\nStatusText\030\003 \001(\t\022Q\n\006Error" + - "s\030\004 \003(\0132A.Diadoc.Api.Proto.PowersOfAttor", - "ney.PowerOfAttorneyValidationError\"<\n\036Po" + - "werOfAttorneyValidationError\022\014\n\004Code\030\001 \002" + - "(\t\022\014\n\004Text\030\002 \002(\t\"\207\001\n!PowerOfAttorneyPrev" + - "alidateRequest\022b\n\024ConfidantCertificate\030\001" + - " \002(\0132D.Diadoc.Api.Proto.PowersOfAttorney" + - ".ConfidantCertificateToPrevalidate\"f\n!Co" + - "nfidantCertificateToPrevalidate\022\022\n\nThumb" + - "print\030\001 \001(\t\022-\n\007Content\030\002 \001(\0132\034.Diadoc.Ap" + - "i.Proto.Content_v3\"\201\001\n PowerOfAttorneyPr" + - "evalidateResult\022]\n\021PrevalidateStatus\030\001 \002", - "(\0132B.Diadoc.Api.Proto.PowersOfAttorney.P" + - "owerOfAttorneyValidationStatus*\227\001\n&Power" + - "OfAttorneyValidationStatusNamedId\022\021\n\rUnk" + - "nownStatus\020\000\022\025\n\021CanNotBeValidated\020\001\022\013\n\007I" + - "sValid\020\002\022\016\n\nIsNotValid\020\003\022\023\n\017ValidationEr" + - "ror\020\004\022\021\n\rIsNotAttached\020\005B!B\037PowerOfAttor" + - "neyValidationProtos" - }; + /** + * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol} + */ + public static final class ValidationProtocol extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol) + ValidationProtocolOrBuilder { + // Use ValidationProtocol.newBuilder() to construct. + private ValidationProtocol(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private ValidationProtocol(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final ValidationProtocol defaultInstance; + public static ValidationProtocol getDefaultInstance() { + return defaultInstance; + } + + public ValidationProtocol getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ValidationProtocol( + 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: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + checkResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + checkResults_.add(input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.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_ & 0x00000001) == 0x00000001)) { + checkResults_ = java.util.Collections.unmodifiableList(checkResults_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationProtocol_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationProtocol_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.class, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public ValidationProtocol parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidationProtocol(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public static final int CHECKRESULTS_FIELD_NUMBER = 1; + private java.util.List checkResults_; + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public java.util.List getCheckResultsList() { + return checkResults_; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public java.util.List + getCheckResultsOrBuilderList() { + return checkResults_; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public int getCheckResultsCount() { + return checkResults_.size(); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult getCheckResults(int index) { + return checkResults_.get(index); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResultOrBuilder getCheckResultsOrBuilder( + int index) { + return checkResults_.get(index); + } + + private void initFields() { + checkResults_ = 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; + + for (int i = 0; i < getCheckResultsCount(); i++) { + if (!getCheckResults(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < checkResults_.size(); i++) { + output.writeMessage(1, checkResults_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < checkResults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, checkResults_.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.PowerOfAttorneyValidationProtos.ValidationProtocol parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol 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.PowerOfAttorneyValidationProtos.ValidationProtocol parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol 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.PowerOfAttorneyValidationProtos.ValidationProtocol parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol 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.PowerOfAttorneyValidationProtos.ValidationProtocol parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol 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.PowerOfAttorneyValidationProtos.ValidationProtocol 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.ValidationProtocol} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol) + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationProtocol_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationProtocol_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.class, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.Builder.class); + } + + // Construct using Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getCheckResultsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (checkResultsBuilder_ == null) { + checkResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + checkResultsBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationProtocol_descriptor; + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol getDefaultInstanceForType() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.getDefaultInstance(); + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol build() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol buildPartial() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol result = new Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol(this); + int from_bitField0_ = bitField0_; + if (checkResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + checkResults_ = java.util.Collections.unmodifiableList(checkResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.checkResults_ = checkResults_; + } else { + result.checkResults_ = checkResultsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol) { + return mergeFrom((Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol other) { + if (other == Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol.getDefaultInstance()) return this; + if (checkResultsBuilder_ == null) { + if (!other.checkResults_.isEmpty()) { + if (checkResults_.isEmpty()) { + checkResults_ = other.checkResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCheckResultsIsMutable(); + checkResults_.addAll(other.checkResults_); + } + onChanged(); + } + } else { + if (!other.checkResults_.isEmpty()) { + if (checkResultsBuilder_.isEmpty()) { + checkResultsBuilder_.dispose(); + checkResultsBuilder_ = null; + checkResults_ = other.checkResults_; + bitField0_ = (bitField0_ & ~0x00000001); + checkResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getCheckResultsFieldBuilder() : null; + } else { + checkResultsBuilder_.addAllMessages(other.checkResults_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + for (int i = 0; i < getCheckResultsCount(); i++) { + if (!getCheckResults(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.PowerOfAttorneyValidationProtos.ValidationProtocol parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationProtocol) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List checkResults_ = + java.util.Collections.emptyList(); + private void ensureCheckResultsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + checkResults_ = new java.util.ArrayList(checkResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResultOrBuilder> checkResultsBuilder_; + + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public java.util.List getCheckResultsList() { + if (checkResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(checkResults_); + } else { + return checkResultsBuilder_.getMessageList(); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public int getCheckResultsCount() { + if (checkResultsBuilder_ == null) { + return checkResults_.size(); + } else { + return checkResultsBuilder_.getCount(); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult getCheckResults(int index) { + if (checkResultsBuilder_ == null) { + return checkResults_.get(index); + } else { + return checkResultsBuilder_.getMessage(index); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Builder setCheckResults( + int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult value) { + if (checkResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckResultsIsMutable(); + checkResults_.set(index, value); + onChanged(); + } else { + checkResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Builder setCheckResults( + int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.Builder builderForValue) { + if (checkResultsBuilder_ == null) { + ensureCheckResultsIsMutable(); + checkResults_.set(index, builderForValue.build()); + onChanged(); + } else { + checkResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Builder addCheckResults(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult value) { + if (checkResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckResultsIsMutable(); + checkResults_.add(value); + onChanged(); + } else { + checkResultsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Builder addCheckResults( + int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult value) { + if (checkResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckResultsIsMutable(); + checkResults_.add(index, value); + onChanged(); + } else { + checkResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Builder addCheckResults( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.Builder builderForValue) { + if (checkResultsBuilder_ == null) { + ensureCheckResultsIsMutable(); + checkResults_.add(builderForValue.build()); + onChanged(); + } else { + checkResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Builder addCheckResults( + int index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.Builder builderForValue) { + if (checkResultsBuilder_ == null) { + ensureCheckResultsIsMutable(); + checkResults_.add(index, builderForValue.build()); + onChanged(); + } else { + checkResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Builder addAllCheckResults( + java.lang.Iterable values) { + if (checkResultsBuilder_ == null) { + ensureCheckResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, checkResults_); + onChanged(); + } else { + checkResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Builder clearCheckResults() { + if (checkResultsBuilder_ == null) { + checkResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + checkResultsBuilder_.clear(); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Builder removeCheckResults(int index) { + if (checkResultsBuilder_ == null) { + ensureCheckResultsIsMutable(); + checkResults_.remove(index); + onChanged(); + } else { + checkResultsBuilder_.remove(index); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.Builder getCheckResultsBuilder( + int index) { + return getCheckResultsFieldBuilder().getBuilder(index); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResultOrBuilder getCheckResultsOrBuilder( + int index) { + if (checkResultsBuilder_ == null) { + return checkResults_.get(index); } else { + return checkResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public java.util.List + getCheckResultsOrBuilderList() { + if (checkResultsBuilder_ != null) { + return checkResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(checkResults_); + } + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.Builder addCheckResultsBuilder() { + return getCheckResultsFieldBuilder().addBuilder( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.getDefaultInstance()); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.Builder addCheckResultsBuilder( + int index) { + return getCheckResultsFieldBuilder().addBuilder( + index, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.getDefaultInstance()); + } + /** + * repeated .Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult CheckResults = 1; + */ + public java.util.List + getCheckResultsBuilderList() { + return getCheckResultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResultOrBuilder> + getCheckResultsFieldBuilder() { + if (checkResultsBuilder_ == null) { + checkResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResultOrBuilder>( + checkResults_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + checkResults_ = null; + } + return checkResultsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol) + } + + static { + defaultInstance = new ValidationProtocol(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.PowersOfAttorney.ValidationProtocol) + } + + public interface ValidationCheckResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult) + com.google.protobuf.MessageOrBuilder { + + /** + * required string Status = 1; + */ + boolean hasStatus(); + /** + * required string Status = 1; + */ + java.lang.String getStatus(); + /** + * required string Status = 1; + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + * required string Name = 2; + */ + boolean hasName(); + /** + * required string Name = 2; + */ + java.lang.String getName(); + /** + * required string Name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + boolean hasError(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError getError(); + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder getErrorOrBuilder(); + } + /** + * Protobuf type {@code Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult} + */ + public static final class ValidationCheckResult extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult) + ValidationCheckResultOrBuilder { + // Use ValidationCheckResult.newBuilder() to construct. + private ValidationCheckResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private ValidationCheckResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final ValidationCheckResult defaultInstance; + public static ValidationCheckResult getDefaultInstance() { + return defaultInstance; + } + + public ValidationCheckResult getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ValidationCheckResult( + 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; + status_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + name_ = bs; + break; + } + case 26: { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + 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.PowerOfAttorneyValidationProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationCheckResult_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationCheckResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.class, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public ValidationCheckResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidationCheckResult(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private java.lang.Object status_; + /** + * required string Status = 1; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string Status = 1; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + 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()) { + status_ = s; + } + return s; + } + } + /** + * required string Status = 1; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private java.lang.Object name_; + /** + * required string Name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string Name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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()) { + name_ = s; + } + return s; + } + } + /** + * required string Name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 3; + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError error_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + public boolean hasError() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError getError() { + return error_; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder getErrorOrBuilder() { + return error_; + } + + private void initFields() { + status_ = ""; + name_ = ""; + error_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + if (hasError()) { + if (!getError().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, getStatusBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getNameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, error_); + } + 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, getStatusBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getNameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, error_); + } + 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.PowerOfAttorneyValidationProtos.ValidationCheckResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult 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.PowerOfAttorneyValidationProtos.ValidationCheckResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult 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.PowerOfAttorneyValidationProtos.ValidationCheckResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult 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.PowerOfAttorneyValidationProtos.ValidationCheckResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult 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.PowerOfAttorneyValidationProtos.ValidationCheckResult 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.ValidationCheckResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult) + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationCheckResult_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationCheckResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.class, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.Builder.class); + } + + // Construct using Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getErrorFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + status_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + if (errorBuilder_ == null) { + error_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.getDefaultInstance(); + } else { + errorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationCheckResult_descriptor; + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult getDefaultInstanceForType() { + return Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.getDefaultInstance(); + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult build() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult buildPartial() { + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult result = new Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.status_ = status_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult) { + return mergeFrom((Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult other) { + if (other == Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.getDefaultInstance()) return this; + if (other.hasStatus()) { + bitField0_ |= 0x00000001; + status_ = other.status_; + onChanged(); + } + if (other.hasName()) { + bitField0_ |= 0x00000002; + name_ = other.name_; + onChanged(); + } + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasStatus()) { + + return false; + } + if (!hasName()) { + + return false; + } + if (hasError()) { + if (!getError().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.PowerOfAttorneyValidationProtos.ValidationCheckResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object status_ = ""; + /** + * required string Status = 1; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string Status = 1; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + 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()) { + status_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string Status = 1; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string Status = 1; + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + status_ = value; + onChanged(); + return this; + } + /** + * required string Status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = getDefaultInstance().getStatus(); + onChanged(); + return this; + } + /** + * required string Status = 1; + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + status_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * required string Name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string Name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string Name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string Name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; + } + /** + * required string Name = 2; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000002); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * required string Name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; + } + + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError error_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder> errorBuilder_; + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + public boolean hasError() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError getError() { + if (errorBuilder_ == null) { + return error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + public Builder setError(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + public Builder setError( + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + public Builder mergeError(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + error_ != Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.getDefaultInstance()) { + error_ = + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.getDefaultInstance(); + onChanged(); + } else { + errorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder getErrorBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_; + } + } + /** + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationError Error = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = new com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.Builder, Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationErrorOrBuilder>( + getError(), + getParentForChildren(), + isClean()); + error_ = null; + } + return errorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult) + } + + static { + defaultInstance = new ValidationCheckResult(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.PowersOfAttorney.ValidationCheckResult) + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyValidationStatus_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyValidationStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyValidationError_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyValidationError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyPrevalidateRequest_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyPrevalidateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_ConfidantCertificateToPrevalidate_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_ConfidantCertificateToPrevalidate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyPrevalidateResult_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyPrevalidateResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationProtocol_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationProtocol_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationCheckResult_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationCheckResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0PowersOfAttorney/PowerOfAttorneyValida" + + "tion.proto\022!Diadoc.Api.Proto.PowersOfAtt" + + "orney\032\016Severity.proto\032\020Content_v3.proto\"" + + "\352\003\n\037PowerOfAttorneyValidationStatus\022=\n\010S" + + "everity\030\001 \001(\0162\032.Diadoc.Api.Proto.Severit" + + "y:\017UnknownSeverity\022o\n\rStatusNamedId\030\002 \001(" + + "\0162I.Diadoc.Api.Proto.PowersOfAttorney.Po" + + "werOfAttorneyValidationStatusNamedId:\rUn" + + "knownStatus\022\022\n\nStatusText\030\003 \001(\t\022U\n\006Error" + + "s\030\004 \003(\0132A.Diadoc.Api.Proto.PowersOfAttor", + "ney.PowerOfAttorneyValidationErrorB\002\030\001\022Q" + + "\n\022ValidationProtocol\030\005 \001(\01325.Diadoc.Api." + + "Proto.PowersOfAttorney.ValidationProtoco" + + "l\022Y\n\016OperationError\030\006 \001(\0132A.Diadoc.Api.P" + + "roto.PowersOfAttorney.PowerOfAttorneyVal" + + "idationError\"<\n\036PowerOfAttorneyValidatio" + + "nError\022\014\n\004Code\030\001 \002(\t\022\014\n\004Text\030\002 \002(\t\"\207\001\n!P" + + "owerOfAttorneyPrevalidateRequest\022b\n\024Conf" + + "idantCertificate\030\001 \002(\0132D.Diadoc.Api.Prot" + + "o.PowersOfAttorney.ConfidantCertificateT", + "oPrevalidate\"f\n!ConfidantCertificateToPr" + + "evalidate\022\022\n\nThumbprint\030\001 \001(\t\022-\n\007Content" + + "\030\002 \001(\0132\034.Diadoc.Api.Proto.Content_v3\"\201\001\n" + + " PowerOfAttorneyPrevalidateResult\022]\n\021Pre" + + "validateStatus\030\001 \002(\0132B.Diadoc.Api.Proto." + + "PowersOfAttorney.PowerOfAttorneyValidati" + + "onStatus\"d\n\022ValidationProtocol\022N\n\014CheckR" + + "esults\030\001 \003(\01328.Diadoc.Api.Proto.PowersOf" + + "Attorney.ValidationCheckResult\"\207\001\n\025Valid" + + "ationCheckResult\022\016\n\006Status\030\001 \002(\t\022\014\n\004Name", + "\030\002 \002(\t\022P\n\005Error\030\003 \001(\0132A.Diadoc.Api.Proto" + + ".PowersOfAttorney.PowerOfAttorneyValidat" + + "ionError*\250\001\n&PowerOfAttorneyValidationSt" + + "atusNamedId\022\021\n\rUnknownStatus\020\000\022\025\n\021CanNot" + + "BeValidated\020\001\022\013\n\007IsValid\020\002\022\016\n\nIsNotValid" + + "\020\003\022\023\n\017ValidationError\020\004\022\021\n\rIsNotAttached" + + "\020\005\022\017\n\013HasWarnings\020\006B!B\037PowerOfAttorneyVa" + + "lidationProtos" + }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( @@ -3611,7 +5581,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyValidationStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyValidationStatus_descriptor, - new java.lang.String[] { "Severity", "StatusNamedId", "StatusText", "Errors", }); + new java.lang.String[] { "Severity", "StatusNamedId", "StatusText", "Errors", "ValidationProtocol", "OperationError", }); internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyValidationError_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyValidationError_fieldAccessorTable = new @@ -3636,6 +5606,18 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_PowersOfAttorney_PowerOfAttorneyPrevalidateResult_descriptor, new java.lang.String[] { "PrevalidateStatus", }); + internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationProtocol_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationProtocol_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationProtocol_descriptor, + new java.lang.String[] { "CheckResults", }); + internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationCheckResult_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationCheckResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Diadoc_Api_Proto_PowersOfAttorney_ValidationCheckResult_descriptor, + new java.lang.String[] { "Status", "Name", "Error", }); Diadoc.Api.Proto.SeverityProtos.getDescriptor(); Diadoc.Api.Proto.Content_v3Protos.getDescriptor(); } From 396dc5e39d5bcca2185afe4aa5a9f8adb5362ff0 Mon Sep 17 00:00:00 2001 From: "nm.suvorov" Date: Mon, 2 Sep 2024 15:05:49 +0300 Subject: [PATCH 2/2] Changed Status to enum --- .../PowerOfAttorneyValidation.proto | 9 +- .../PowerOfAttorneyValidationProtos.java | 279 ++++++++++-------- 2 files changed, 165 insertions(+), 123 deletions(-) diff --git a/proto/PowersOfAttorney/PowerOfAttorneyValidation.proto b/proto/PowersOfAttorney/PowerOfAttorneyValidation.proto index 679ce5c8..c6bc6966 100644 --- a/proto/PowersOfAttorney/PowerOfAttorneyValidation.proto +++ b/proto/PowersOfAttorney/PowerOfAttorneyValidation.proto @@ -46,7 +46,14 @@ message ValidationProtocol { } message ValidationCheckResult { - required string Status = 1; + optional PowerOfAttorneyValidationCheckStatus Status = 1 [default = UnknownCheckStatus]; required string Name = 2; optional PowerOfAttorneyValidationError Error = 3; } + +enum PowerOfAttorneyValidationCheckStatus { + UnknownCheckStatus = 0; //reserved for backward compatibility + Ok = 1; + Warning = 2; + Error = 3; +} diff --git a/src/main/java/Diadoc/Api/Proto/PowersOfAttorney/PowerOfAttorneyValidationProtos.java b/src/main/java/Diadoc/Api/Proto/PowersOfAttorney/PowerOfAttorneyValidationProtos.java index a4ea0df8..6e6324db 100644 --- a/src/main/java/Diadoc/Api/Proto/PowersOfAttorney/PowerOfAttorneyValidationProtos.java +++ b/src/main/java/Diadoc/Api/Proto/PowersOfAttorney/PowerOfAttorneyValidationProtos.java @@ -143,6 +143,114 @@ private PowerOfAttorneyValidationStatusNamedId(int index, int value) { // @@protoc_insertion_point(enum_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatusNamedId) } + /** + * Protobuf enum {@code Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus} + */ + public enum PowerOfAttorneyValidationCheckStatus + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UnknownCheckStatus = 0; + * + *
+     *reserved for backward compatibility
+     * 
+ */ + UnknownCheckStatus(0, 0), + /** + * Ok = 1; + */ + Ok(1, 1), + /** + * Warning = 2; + */ + Warning(2, 2), + /** + * Error = 3; + */ + Error(3, 3), + ; + + /** + * UnknownCheckStatus = 0; + * + *
+     *reserved for backward compatibility
+     * 
+ */ + public static final int UnknownCheckStatus_VALUE = 0; + /** + * Ok = 1; + */ + public static final int Ok_VALUE = 1; + /** + * Warning = 2; + */ + public static final int Warning_VALUE = 2; + /** + * Error = 3; + */ + public static final int Error_VALUE = 3; + + + public final int getNumber() { return value; } + + public static PowerOfAttorneyValidationCheckStatus valueOf(int value) { + switch (value) { + case 0: return UnknownCheckStatus; + case 1: return Ok; + case 2: return Warning; + case 3: return Error; + 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 PowerOfAttorneyValidationCheckStatus findValueByNumber(int number) { + return PowerOfAttorneyValidationCheckStatus.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.PowerOfAttorneyValidationProtos.getDescriptor().getEnumTypes().get(1); + } + + private static final PowerOfAttorneyValidationCheckStatus[] VALUES = values(); + + public static PowerOfAttorneyValidationCheckStatus 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 PowerOfAttorneyValidationCheckStatus(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus) + } + public interface PowerOfAttorneyValidationStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationStatus) com.google.protobuf.MessageOrBuilder { @@ -4634,18 +4742,13 @@ public interface ValidationCheckResultOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * required string Status = 1; + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus Status = 1 [default = UnknownCheckStatus]; */ boolean hasStatus(); /** - * required string Status = 1; + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus Status = 1 [default = UnknownCheckStatus]; */ - java.lang.String getStatus(); - /** - * required string Status = 1; - */ - com.google.protobuf.ByteString - getStatusBytes(); + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationCheckStatus getStatus(); /** * required string Name = 2; @@ -4726,10 +4829,15 @@ private ValidationCheckResult( } break; } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - status_ = bs; + case 8: { + int rawValue = input.readEnum(); + Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationCheckStatus value = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationCheckStatus.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + status_ = value; + } break; } case 18: { @@ -4792,45 +4900,18 @@ public com.google.protobuf.Parser getParserForType() { private int bitField0_; public static final int STATUS_FIELD_NUMBER = 1; - private java.lang.Object status_; + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationCheckStatus status_; /** - * required string Status = 1; + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus Status = 1 [default = UnknownCheckStatus]; */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * required string Status = 1; - */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - 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()) { - status_ = s; - } - return s; - } - } - /** - * required string Status = 1; + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus Status = 1 [default = UnknownCheckStatus]; */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationCheckStatus getStatus() { + return status_; } public static final int NAME_FIELD_NUMBER = 2; @@ -4897,7 +4978,7 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf } private void initFields() { - status_ = ""; + status_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationCheckStatus.UnknownCheckStatus; name_ = ""; error_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationError.getDefaultInstance(); } @@ -4907,10 +4988,6 @@ public final boolean isInitialized() { if (isInitialized == 1) return true; if (isInitialized == 0) return false; - if (!hasStatus()) { - memoizedIsInitialized = 0; - return false; - } if (!hasName()) { memoizedIsInitialized = 0; return false; @@ -4929,7 +5006,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getStatusBytes()); + output.writeEnum(1, status_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNameBytes()); @@ -4948,7 +5025,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getStatusBytes()); + .computeEnumSize(1, status_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream @@ -5076,7 +5153,7 @@ private static Builder create() { public Builder clear() { super.clear(); - status_ = ""; + status_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationCheckStatus.UnknownCheckStatus; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); @@ -5147,9 +5224,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult other) { if (other == Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.ValidationCheckResult.getDefaultInstance()) return this; if (other.hasStatus()) { - bitField0_ |= 0x00000001; - status_ = other.status_; - onChanged(); + setStatus(other.getStatus()); } if (other.hasName()) { bitField0_ |= 0x00000002; @@ -5164,10 +5239,6 @@ public Builder mergeFrom(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValida } public final boolean isInitialized() { - if (!hasStatus()) { - - return false; - } if (!hasName()) { return false; @@ -5200,78 +5271,37 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object status_ = ""; + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationCheckStatus status_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationCheckStatus.UnknownCheckStatus; /** - * required string Status = 1; + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus Status = 1 [default = UnknownCheckStatus]; */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * required string Status = 1; + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus Status = 1 [default = UnknownCheckStatus]; */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - 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()) { - status_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationCheckStatus getStatus() { + return status_; } /** - * required string Status = 1; + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus Status = 1 [default = UnknownCheckStatus]; */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string Status = 1; - */ - public Builder setStatus( - java.lang.String value) { + public Builder setStatus(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationCheckStatus value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; status_ = value; onChanged(); return this; } /** - * required string Status = 1; + * optional .Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus Status = 1 [default = UnknownCheckStatus]; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); - status_ = getDefaultInstance().getStatus(); - onChanged(); - return this; - } - /** - * required string Status = 1; - */ - public Builder setStatusBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - status_ = value; + status_ = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOfAttorneyValidationCheckStatus.UnknownCheckStatus; onChanged(); return this; } @@ -5551,16 +5581,21 @@ public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationProtos.PowerOf "PowersOfAttorney.PowerOfAttorneyValidati" + "onStatus\"d\n\022ValidationProtocol\022N\n\014CheckR" + "esults\030\001 \003(\01328.Diadoc.Api.Proto.PowersOf" + - "Attorney.ValidationCheckResult\"\207\001\n\025Valid" + - "ationCheckResult\022\016\n\006Status\030\001 \002(\t\022\014\n\004Name", - "\030\002 \002(\t\022P\n\005Error\030\003 \001(\0132A.Diadoc.Api.Proto" + - ".PowersOfAttorney.PowerOfAttorneyValidat" + - "ionError*\250\001\n&PowerOfAttorneyValidationSt" + - "atusNamedId\022\021\n\rUnknownStatus\020\000\022\025\n\021CanNot" + - "BeValidated\020\001\022\013\n\007IsValid\020\002\022\016\n\nIsNotValid" + - "\020\003\022\023\n\017ValidationError\020\004\022\021\n\rIsNotAttached" + - "\020\005\022\017\n\013HasWarnings\020\006B!B\037PowerOfAttorneyVa" + - "lidationProtos" + "Attorney.ValidationCheckResult\"\344\001\n\025Valid" + + "ationCheckResult\022k\n\006Status\030\001 \001(\0162G.Diado", + "c.Api.Proto.PowersOfAttorney.PowerOfAtto" + + "rneyValidationCheckStatus:\022UnknownCheckS" + + "tatus\022\014\n\004Name\030\002 \002(\t\022P\n\005Error\030\003 \001(\0132A.Dia" + + "doc.Api.Proto.PowersOfAttorney.PowerOfAt" + + "torneyValidationError*\250\001\n&PowerOfAttorne" + + "yValidationStatusNamedId\022\021\n\rUnknownStatu" + + "s\020\000\022\025\n\021CanNotBeValidated\020\001\022\013\n\007IsValid\020\002\022" + + "\016\n\nIsNotValid\020\003\022\023\n\017ValidationError\020\004\022\021\n\r" + + "IsNotAttached\020\005\022\017\n\013HasWarnings\020\006*^\n$Powe" + + "rOfAttorneyValidationCheckStatus\022\026\n\022Unkn", + "ownCheckStatus\020\000\022\006\n\002Ok\020\001\022\013\n\007Warning\020\002\022\t\n" + + "\005Error\020\003B!B\037PowerOfAttorneyValidationPro" + + "tos" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {