From d25ab9153b9f353ab214b370be7163d8b992a366 Mon Sep 17 00:00:00 2001 From: "d.smirnov" Date: Tue, 31 Mar 2026 13:29:32 +0500 Subject: [PATCH 1/3] feat: add "is read props" --- .../UniversalMessageAttachmentDocflow.proto | 1 + proto/Documents/Document.proto | 1 + ...iversalMessageAttachmentDocflowProtos.java | 109 +++++++- .../Api/Proto/Documents/DocumentProtos.java | 234 +++++++++++++----- 4 files changed, 275 insertions(+), 70 deletions(-) diff --git a/proto/Docflow/UniversalMessageAttachmentDocflow.proto b/proto/Docflow/UniversalMessageAttachmentDocflow.proto index 94439aef..6ac2a906 100644 --- a/proto/Docflow/UniversalMessageAttachmentDocflow.proto +++ b/proto/Docflow/UniversalMessageAttachmentDocflow.proto @@ -8,4 +8,5 @@ message UniversalMessageAttachmentDocflow { required Attachment Attachment = 1; required UniversalMessageInfo MessageInfo = 2; required string ContentTypeId = 3; + optional bool IsRead = 4 [default = false]; } \ No newline at end of file diff --git a/proto/Documents/Document.proto b/proto/Documents/Document.proto index f38f9d16..f02df8ea 100644 --- a/proto/Documents/Document.proto +++ b/proto/Documents/Document.proto @@ -102,6 +102,7 @@ message Document { optional string ProxyDepartmentId = 79; required DocflowStatusV3 DocflowStatus = 80; optional TtGisFixationCancellationStatus TtGisFixationCancellationStatus = 81 [default = TtGisFixationCancellationStatusNone]; + optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; } message LastOuterDocflow { diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/UniversalMessageAttachmentDocflowProtos.java b/src/main/java/Diadoc/Api/Proto/Docflow/UniversalMessageAttachmentDocflowProtos.java index 04e73497..f4b490b0 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/UniversalMessageAttachmentDocflowProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/UniversalMessageAttachmentDocflowProtos.java @@ -75,6 +75,17 @@ public interface UniversalMessageAttachmentDocflowOrBuilder extends */ com.google.protobuf.ByteString getContentTypeIdBytes(); + + /** + * optional bool IsRead = 4 [default = false]; + * @return Whether the isRead field is set. + */ + boolean hasIsRead(); + /** + * optional bool IsRead = 4 [default = false]; + * @return The isRead. + */ + boolean getIsRead(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.UniversalMessageAttachmentDocflow} @@ -216,6 +227,25 @@ public java.lang.String getContentTypeId() { } } + public static final int ISREAD_FIELD_NUMBER = 4; + private boolean isRead_ = false; + /** + * optional bool IsRead = 4 [default = false]; + * @return Whether the isRead field is set. + */ + @java.lang.Override + public boolean hasIsRead() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional bool IsRead = 4 [default = false]; + * @return The isRead. + */ + @java.lang.Override + public boolean getIsRead() { + return isRead_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -259,6 +289,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, contentTypeId_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(4, isRead_); + } getUnknownFields().writeTo(output); } @@ -279,6 +312,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, contentTypeId_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, isRead_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -309,6 +346,11 @@ public boolean equals(final java.lang.Object obj) { if (!getContentTypeId() .equals(other.getContentTypeId())) return false; } + if (hasIsRead() != other.hasIsRead()) return false; + if (hasIsRead()) { + if (getIsRead() + != other.getIsRead()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -332,6 +374,11 @@ public int hashCode() { hash = (37 * hash) + CONTENTTYPEID_FIELD_NUMBER; hash = (53 * hash) + getContentTypeId().hashCode(); } + if (hasIsRead()) { + hash = (37 * hash) + ISREAD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRead()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -481,6 +528,7 @@ public Builder clear() { messageInfoBuilder_ = null; } contentTypeId_ = ""; + isRead_ = false; return this; } @@ -531,6 +579,10 @@ private void buildPartial0(Diadoc.Api.Proto.Docflow.UniversalMessageAttachmentDo result.contentTypeId_ = contentTypeId_; to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isRead_ = isRead_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -557,6 +609,9 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.UniversalMessageAttachmentDocf bitField0_ |= 0x00000004; onChanged(); } + if (other.hasIsRead()) { + setIsRead(other.getIsRead()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -617,6 +672,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 32: { + isRead_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -956,6 +1016,46 @@ public Builder setContentTypeIdBytes( return this; } + private boolean isRead_ ; + /** + * optional bool IsRead = 4 [default = false]; + * @return Whether the isRead field is set. + */ + @java.lang.Override + public boolean hasIsRead() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional bool IsRead = 4 [default = false]; + * @return The isRead. + */ + @java.lang.Override + public boolean getIsRead() { + return isRead_; + } + /** + * optional bool IsRead = 4 [default = false]; + * @param value The isRead to set. + * @return This builder for chaining. + */ + public Builder setIsRead(boolean value) { + + isRead_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional bool IsRead = 4 [default = false]; + * @return This builder for chaining. + */ + public Builder clearIsRead() { + bitField0_ = (bitField0_ & ~0x00000008); + isRead_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.UniversalMessageAttachmentDocflow) } @@ -1024,12 +1124,13 @@ public Diadoc.Api.Proto.Docflow.UniversalMessageAttachmentDocflowProtos.Universa "\n/Docflow/UniversalMessageAttachmentDocf" + "low.proto\022\030Diadoc.Api.Proto.Docflow\032\030Doc" + "flow/Attachment.proto\032\026UniversalMessage." + - "proto\"\261\001\n!UniversalMessageAttachmentDocf" + + "proto\"\310\001\n!UniversalMessageAttachmentDocf" + "low\0228\n\nAttachment\030\001 \002(\0132$.Diadoc.Api.Pro" + "to.Docflow.Attachment\022;\n\013MessageInfo\030\002 \002" + "(\0132&.Diadoc.Api.Proto.UniversalMessageIn" + - "fo\022\025\n\rContentTypeId\030\003 \002(\tB)B\'UniversalMe" + - "ssageAttachmentDocflowProtos" + "fo\022\025\n\rContentTypeId\030\003 \002(\t\022\025\n\006IsRead\030\004 \001(" + + "\010:\005falseB)B\'UniversalMessageAttachmentDo" + + "cflowProtos" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -1042,7 +1143,7 @@ public Diadoc.Api.Proto.Docflow.UniversalMessageAttachmentDocflowProtos.Universa internal_static_Diadoc_Api_Proto_Docflow_UniversalMessageAttachmentDocflow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_UniversalMessageAttachmentDocflow_descriptor, - new java.lang.String[] { "Attachment", "MessageInfo", "ContentTypeId", }); + new java.lang.String[] { "Attachment", "MessageInfo", "ContentTypeId", "IsRead", }); descriptor.resolveAllFeaturesImmutable(); Diadoc.Api.Proto.Docflow.AttachmentProtos.getDescriptor(); Diadoc.Api.Proto.UniversalMessageProtos.getDescriptor(); diff --git a/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtos.java index f55aff67..7dc5310b 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtos.java @@ -2364,6 +2364,17 @@ Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflowOrBuilder getLastOuter * @return The ttGisFixationCancellationStatus. */ Diadoc.Api.Proto.TtGisFixationCancellationStatusProtos.TtGisFixationCancellationStatus getTtGisFixationCancellationStatus(); + + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * @return Whether the hasUnreadOutOfWorkflowUniversalMessages field is set. + */ + boolean hasHasUnreadOutOfWorkflowUniversalMessages(); + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * @return The hasUnreadOutOfWorkflowUniversalMessages. + */ + boolean getHasUnreadOutOfWorkflowUniversalMessages(); } /** * Protobuf type {@code Diadoc.Api.Proto.Documents.Document} @@ -4943,6 +4954,25 @@ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3OrBuilder getDocflo return result == null ? Diadoc.Api.Proto.TtGisFixationCancellationStatusProtos.TtGisFixationCancellationStatus.TtGisFixationCancellationStatusNone : result; } + public static final int HASUNREADOUTOFWORKFLOWUNIVERSALMESSAGES_FIELD_NUMBER = 82; + private boolean hasUnreadOutOfWorkflowUniversalMessages_ = false; + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * @return Whether the hasUnreadOutOfWorkflowUniversalMessages field is set. + */ + @java.lang.Override + public boolean hasHasUnreadOutOfWorkflowUniversalMessages() { + return ((bitField2_ & 0x00000200) != 0); + } + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * @return The hasUnreadOutOfWorkflowUniversalMessages. + */ + @java.lang.Override + public boolean getHasUnreadOutOfWorkflowUniversalMessages() { + return hasUnreadOutOfWorkflowUniversalMessages_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -5424,6 +5454,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField2_ & 0x00000100) != 0)) { output.writeEnum(81, ttGisFixationCancellationStatus_); } + if (((bitField2_ & 0x00000200) != 0)) { + output.writeBool(82, hasUnreadOutOfWorkflowUniversalMessages_); + } getUnknownFields().writeTo(output); } @@ -5727,6 +5760,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(81, ttGisFixationCancellationStatus_); } + if (((bitField2_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(82, hasUnreadOutOfWorkflowUniversalMessages_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6110,6 +6147,11 @@ public boolean equals(final java.lang.Object obj) { if (hasTtGisFixationCancellationStatus()) { if (ttGisFixationCancellationStatus_ != other.ttGisFixationCancellationStatus_) return false; } + if (hasHasUnreadOutOfWorkflowUniversalMessages() != other.hasHasUnreadOutOfWorkflowUniversalMessages()) return false; + if (hasHasUnreadOutOfWorkflowUniversalMessages()) { + if (getHasUnreadOutOfWorkflowUniversalMessages() + != other.getHasUnreadOutOfWorkflowUniversalMessages()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6447,6 +6489,11 @@ public int hashCode() { hash = (37 * hash) + TTGISFIXATIONCANCELLATIONSTATUS_FIELD_NUMBER; hash = (53 * hash) + ttGisFixationCancellationStatus_; } + if (hasHasUnreadOutOfWorkflowUniversalMessages()) { + hash = (37 * hash) + HASUNREADOUTOFWORKFLOWUNIVERSALMESSAGES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasUnreadOutOfWorkflowUniversalMessages()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -6861,6 +6908,7 @@ public Builder clear() { docflowStatusBuilder_ = null; } ttGisFixationCancellationStatus_ = 0; + hasUnreadOutOfWorkflowUniversalMessages_ = false; return this; } @@ -7324,6 +7372,10 @@ private void buildPartial2(Diadoc.Api.Proto.Documents.DocumentProtos.Document re result.ttGisFixationCancellationStatus_ = ttGisFixationCancellationStatus_; to_bitField2_ |= 0x00000100; } + if (((from_bitField2_ & 0x00008000) != 0)) { + result.hasUnreadOutOfWorkflowUniversalMessages_ = hasUnreadOutOfWorkflowUniversalMessages_; + to_bitField2_ |= 0x00000200; + } result.bitField1_ |= to_bitField1_; result.bitField2_ |= to_bitField2_; } @@ -7759,6 +7811,9 @@ public Builder mergeFrom(Diadoc.Api.Proto.Documents.DocumentProtos.Document othe if (other.hasTtGisFixationCancellationStatus()) { setTtGisFixationCancellationStatus(other.getTtGisFixationCancellationStatus()); } + if (other.hasHasUnreadOutOfWorkflowUniversalMessages()) { + setHasUnreadOutOfWorkflowUniversalMessages(other.getHasUnreadOutOfWorkflowUniversalMessages()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -8538,6 +8593,11 @@ public Builder mergeFrom( } break; } // case 648 + case 656: { + hasUnreadOutOfWorkflowUniversalMessages_ = input.readBool(); + bitField2_ |= 0x00008000; + break; + } // case 656 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -16326,6 +16386,46 @@ public Builder clearTtGisFixationCancellationStatus() { return this; } + private boolean hasUnreadOutOfWorkflowUniversalMessages_ ; + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * @return Whether the hasUnreadOutOfWorkflowUniversalMessages field is set. + */ + @java.lang.Override + public boolean hasHasUnreadOutOfWorkflowUniversalMessages() { + return ((bitField2_ & 0x00008000) != 0); + } + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * @return The hasUnreadOutOfWorkflowUniversalMessages. + */ + @java.lang.Override + public boolean getHasUnreadOutOfWorkflowUniversalMessages() { + return hasUnreadOutOfWorkflowUniversalMessages_; + } + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * @param value The hasUnreadOutOfWorkflowUniversalMessages to set. + * @return This builder for chaining. + */ + public Builder setHasUnreadOutOfWorkflowUniversalMessages(boolean value) { + + hasUnreadOutOfWorkflowUniversalMessages_ = value; + bitField2_ |= 0x00008000; + onChanged(); + return this; + } + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * @return This builder for chaining. + */ + public Builder clearHasUnreadOutOfWorkflowUniversalMessages() { + bitField2_ = (bitField2_ & ~0x00008000); + hasUnreadOutOfWorkflowUniversalMessages_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Documents.Document) } @@ -21261,7 +21361,7 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.Origin getDefaultInstanceForTyp "mentEvent.proto\032\"Events/DiadocMessage-Po" + "stApi.proto\032 OuterDocflows/OuterDocflow." + "proto\032\025DocflowStatusV3.proto\032%TtGisFixat" + - "ionCancellationStatus.proto\"\241)\n\010Document" + + "ionCancellationStatus.proto\"\331)\n\010Document" + "\022\020\n\010IndexKey\030\001 \001(\t\022\021\n\tMessageId\030\002 \002(\t\022\020\n" + "\010EntityId\030\003 \002(\t\022\036\n\026CreationTimestampTick" + "s\030\004 \002(\020\022\031\n\021CounteragentBoxId\030\005 \001(\t\022I\n\014Do" + @@ -21393,70 +21493,72 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.Origin getDefaultInstanceForTyp ".Proto.DocflowStatusV3\022\177\n\037TtGisFixationC" + "ancellationStatus\030Q \001(\01621.Diadoc.Api.Pro" + "to.TtGisFixationCancellationStatus:#TtGi" + - "sFixationCancellationStatusNone\"r\n\020LastO" + - "uterDocflow\022\026\n\016ParentEntityId\030\001 \002(\t\022F\n\014O" + - "uterDocflow\030\002 \002(\01320.Diadoc.Api.Proto.Out" + - "erDocflows.OuterDocflowInfo\"\310\001\n\020Resoluti" + - "onStatus\022W\n\004Type\030\001 \001(\01620.Diadoc.Api.Prot" + - "o.Documents.ResolutionStatusType:\027Unknow" + - "nResolutionStatus\0222\n\006Target\030\002 \001(\0132\".Diad" + - "oc.Api.Proto.ResolutionTarget\022\024\n\014AuthorU" + - "serId\030\003 \002(\t\022\021\n\tAuthorFIO\030\004 \002(\t\"\320\001\n\030Recip" + - "ientReceiptMetadata\022d\n\rReceiptStatus\030\001 \002" + - "(\01620.Diadoc.Api.Proto.Documents.GeneralR" + - "eceiptStatus:\033GeneralReceiptStatusUnknow" + - "n\022N\n\024ConfirmationMetadata\030\002 \001(\01320.Diadoc" + - ".Api.Proto.Documents.ConfirmationMetadat" + - "a\"}\n\025SenderReceiptMetadata\022d\n\rReceiptSta" + - "tus\030\001 \002(\01620.Diadoc.Api.Proto.Documents.G" + - "eneralReceiptStatus:\033GeneralReceiptStatu" + - "sUnknown\"\223\001\n\024ConfirmationMetadata\022d\n\rRec" + - "eiptStatus\030\001 \002(\01620.Diadoc.Api.Proto.Docu" + - "ments.GeneralReceiptStatus:\033GeneralRecei" + - "ptStatusUnknown\022\025\n\rDateTimeTicks\030\002 \002(\020\"\230" + - "\001\n\030AmendmentRequestMetadata\022\026\n\016Amendment" + - "Flags\030\001 \002(\005\022d\n\rReceiptStatus\030\002 \002(\01620.Dia" + - "doc.Api.Proto.Documents.GeneralReceiptSt" + - "atus:\033GeneralReceiptStatusUnknown\"Y\n\006Ori" + - "gin\022<\n\013MessageType\030\001 \002(\0162\'.Diadoc.Api.Pr" + - "oto.Documents.MessageType\022\021\n\tMessageId\030\002" + - " \002(\t*\302\001\n\024ResolutionStatusType\022$\n\027Unknown" + - "ResolutionStatus\020\377\377\377\377\377\377\377\377\377\001\022\010\n\004None\020\000\022\014\n" + - "\010Approved\020\001\022\017\n\013Disapproved\020\002\022\030\n\024Approvem" + - "entRequested\020\003\022\026\n\022SignatureRequested\020\004\022\023" + - "\n\017SignatureDenied\020\005\022\024\n\020ActionsRequested\020" + - "\006*\262\001\n\020RevocationStatus\022\033\n\027UnknownRevocat" + - "ionStatus\020\000\022\030\n\024RevocationStatusNone\020\001\022\035\n" + - "\031RevocationIsRequestedByMe\020\002\022\030\n\024Requests" + - "MyRevocation\020\003\022\026\n\022RevocationAccepted\020\004\022\026" + - "\n\022RevocationRejected\020\005*\256\001\n\031RoamingNotifi" + - "cationStatus\022$\n UnknownRoamingNotificati" + - "onStatus\020\000\022!\n\035RoamingNotificationStatusN" + - "one\020\001\022$\n RoamingNotificationStatusSucces" + - "s\020\002\022\"\n\036RoamingNotificationStatusError\020\003*" + - "\300\001\n\025SenderSignatureStatus\022 \n\034UnknownSend" + - "erSignatureStatus\020\000\022\035\n\031WaitingForSenderS" + - "ignature\020\001\022\034\n\030SenderSignatureUnchecked\020\002" + - "\022\"\n\036SenderSignatureCheckedAndValid\020\003\022$\n " + - "SenderSignatureCheckedAndInvalid\020\004*\302\001\n\024P" + - "roxySignatureStatus\022\037\n\033UnknownProxySigna" + - "tureStatus\020\000\022\034\n\030ProxySignatureStatusNone" + - "\020\001\022\034\n\030WaitingForProxySignature\020\002\022\026\n\022With" + - "ProxySignature\020\003\022\032\n\026ProxySignatureReject" + - "ed\020\004\022\031\n\025InvalidProxySignature\020\005*\234\001\n\024Gene" + - "ralReceiptStatus\022\037\n\033GeneralReceiptStatus" + - "Unknown\020\000\022%\n!GeneralReceiptStatusNotAcce" + - "ptable\020\001\022\027\n\023HaveToCreateReceipt\020\002\022\025\n\021Wai" + - "tingForReceipt\020\003\022\014\n\010Finished\020\004*\220\002\n\027Recip" + - "ientResponseStatus\022\"\n\036RecipientResponseS" + - "tatusUnknown\020\000\022(\n$RecipientResponseStatu" + - "sNotAcceptable\020\001\022 \n\034WaitingForRecipientS" + - "ignature\020\002\022\032\n\026WithRecipientSignature\020\003\022%" + - "\n!RecipientSignatureRequestRejected\020\004\022\035\n" + - "\031InvalidRecipientSignature\020\005\022#\n\037WithReci" + - "pientPartiallySignature\020\006*?\n\013MessageType" + - "\022\013\n\007Unknown\020\000\022\n\n\006Letter\020\001\022\t\n\005Draft\020\002\022\014\n\010" + - "Template\020\003B\020B\016DocumentProtos" + "sFixationCancellationStatusNone\0226\n\'HasUn" + + "readOutOfWorkflowUniversalMessages\030R \001(\010" + + ":\005false\"r\n\020LastOuterDocflow\022\026\n\016ParentEnt" + + "ityId\030\001 \002(\t\022F\n\014OuterDocflow\030\002 \002(\01320.Diad" + + "oc.Api.Proto.OuterDocflows.OuterDocflowI" + + "nfo\"\310\001\n\020ResolutionStatus\022W\n\004Type\030\001 \001(\01620" + + ".Diadoc.Api.Proto.Documents.ResolutionSt" + + "atusType:\027UnknownResolutionStatus\0222\n\006Tar" + + "get\030\002 \001(\0132\".Diadoc.Api.Proto.ResolutionT" + + "arget\022\024\n\014AuthorUserId\030\003 \002(\t\022\021\n\tAuthorFIO" + + "\030\004 \002(\t\"\320\001\n\030RecipientReceiptMetadata\022d\n\rR" + + "eceiptStatus\030\001 \002(\01620.Diadoc.Api.Proto.Do" + + "cuments.GeneralReceiptStatus:\033GeneralRec" + + "eiptStatusUnknown\022N\n\024ConfirmationMetadat" + + "a\030\002 \001(\01320.Diadoc.Api.Proto.Documents.Con" + + "firmationMetadata\"}\n\025SenderReceiptMetada" + + "ta\022d\n\rReceiptStatus\030\001 \002(\01620.Diadoc.Api.P" + + "roto.Documents.GeneralReceiptStatus:\033Gen" + + "eralReceiptStatusUnknown\"\223\001\n\024Confirmatio" + + "nMetadata\022d\n\rReceiptStatus\030\001 \002(\01620.Diado" + + "c.Api.Proto.Documents.GeneralReceiptStat" + + "us:\033GeneralReceiptStatusUnknown\022\025\n\rDateT" + + "imeTicks\030\002 \002(\020\"\230\001\n\030AmendmentRequestMetad" + + "ata\022\026\n\016AmendmentFlags\030\001 \002(\005\022d\n\rReceiptSt" + + "atus\030\002 \002(\01620.Diadoc.Api.Proto.Documents." + + "GeneralReceiptStatus:\033GeneralReceiptStat" + + "usUnknown\"Y\n\006Origin\022<\n\013MessageType\030\001 \002(\016" + + "2\'.Diadoc.Api.Proto.Documents.MessageTyp" + + "e\022\021\n\tMessageId\030\002 \002(\t*\302\001\n\024ResolutionStatu" + + "sType\022$\n\027UnknownResolutionStatus\020\377\377\377\377\377\377\377" + + "\377\377\001\022\010\n\004None\020\000\022\014\n\010Approved\020\001\022\017\n\013Disapprov" + + "ed\020\002\022\030\n\024ApprovementRequested\020\003\022\026\n\022Signat" + + "ureRequested\020\004\022\023\n\017SignatureDenied\020\005\022\024\n\020A" + + "ctionsRequested\020\006*\262\001\n\020RevocationStatus\022\033" + + "\n\027UnknownRevocationStatus\020\000\022\030\n\024Revocatio" + + "nStatusNone\020\001\022\035\n\031RevocationIsRequestedBy" + + "Me\020\002\022\030\n\024RequestsMyRevocation\020\003\022\026\n\022Revoca" + + "tionAccepted\020\004\022\026\n\022RevocationRejected\020\005*\256" + + "\001\n\031RoamingNotificationStatus\022$\n UnknownR" + + "oamingNotificationStatus\020\000\022!\n\035RoamingNot" + + "ificationStatusNone\020\001\022$\n RoamingNotifica" + + "tionStatusSuccess\020\002\022\"\n\036RoamingNotificati" + + "onStatusError\020\003*\300\001\n\025SenderSignatureStatu" + + "s\022 \n\034UnknownSenderSignatureStatus\020\000\022\035\n\031W" + + "aitingForSenderSignature\020\001\022\034\n\030SenderSign" + + "atureUnchecked\020\002\022\"\n\036SenderSignatureCheck" + + "edAndValid\020\003\022$\n SenderSignatureCheckedAn" + + "dInvalid\020\004*\302\001\n\024ProxySignatureStatus\022\037\n\033U" + + "nknownProxySignatureStatus\020\000\022\034\n\030ProxySig" + + "natureStatusNone\020\001\022\034\n\030WaitingForProxySig" + + "nature\020\002\022\026\n\022WithProxySignature\020\003\022\032\n\026Prox" + + "ySignatureRejected\020\004\022\031\n\025InvalidProxySign" + + "ature\020\005*\234\001\n\024GeneralReceiptStatus\022\037\n\033Gene" + + "ralReceiptStatusUnknown\020\000\022%\n!GeneralRece" + + "iptStatusNotAcceptable\020\001\022\027\n\023HaveToCreate" + + "Receipt\020\002\022\025\n\021WaitingForReceipt\020\003\022\014\n\010Fini" + + "shed\020\004*\220\002\n\027RecipientResponseStatus\022\"\n\036Re" + + "cipientResponseStatusUnknown\020\000\022(\n$Recipi" + + "entResponseStatusNotAcceptable\020\001\022 \n\034Wait" + + "ingForRecipientSignature\020\002\022\032\n\026WithRecipi" + + "entSignature\020\003\022%\n!RecipientSignatureRequ" + + "estRejected\020\004\022\035\n\031InvalidRecipientSignatu" + + "re\020\005\022#\n\037WithRecipientPartiallySignature\020" + + "\006*?\n\013MessageType\022\013\n\007Unknown\020\000\022\n\n\006Letter\020" + + "\001\022\t\n\005Draft\020\002\022\014\n\010Template\020\003B\020B\016DocumentPr" + + "otos" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -21485,7 +21587,7 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.Origin getDefaultInstanceForTyp internal_static_Diadoc_Api_Proto_Documents_Document_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Documents_Document_descriptor, - new java.lang.String[] { "IndexKey", "MessageId", "EntityId", "CreationTimestampTicks", "CounteragentBoxId", "DocumentType", "InitialDocumentIds", "SubordinateDocumentIds", "Content", "FileName", "DocumentDate", "DocumentNumber", "NonformalizedDocumentMetadata", "InvoiceMetadata", "TrustConnectionRequestMetadata", "Torg12Metadata", "InvoiceRevisionMetadata", "InvoiceCorrectionMetadata", "InvoiceCorrectionRevisionMetadata", "AcceptanceCertificateMetadata", "ProformaInvoiceMetadata", "XmlTorg12Metadata", "XmlAcceptanceCertificateMetadata", "IsDeleted", "DepartmentId", "IsTest", "FromDepartmentId", "ToDepartmentId", "PriceListMetadata", "CustomDocumentId", "ResolutionStatus", "RevocationStatus", "SendTimestampTicks", "DeliveryTimestampTicks", "ForwardDocumentEvents", "ReconciliationActMetadata", "ContractMetadata", "Torg13Metadata", "ServiceDetailsMetadata", "RoamingNotificationStatus", "HasCustomPrintForm", "CustomData", "PacketId", "DocumentDirection", "LastModificationTimestampTicks", "IsEncryptedContent", "SenderSignatureStatus", "SupplementaryAgreementMetadata", "IsRead", "RoamingNotificationStatusDescription", "PacketIsLocked", "PriceListAgreementMetadata", "CertificateRegistryMetadata", "UniversalTransferDocumentMetadata", "UniversalTransferDocumentRevisionMetadata", "UniversalCorrectionDocumentMetadata", "UniversalCorrectionDocumentRevisionMetadata", "ResolutionRouteId", "AttachmentVersion", "ProxySignatureStatus", "TypeNamedId", "Function", "WorkflowId", "Title", "Metadata", "RecipientReceiptMetadata", "ConfirmationMetadata", "RecipientResponseStatus", "AmendmentRequestMetadata", "Origin", "EditingSettingId", "LockMode", "SenderReceiptMetadata", "Version", "LastOuterDocflows", "ProxyBoxId", "ProxyDepartmentId", "DocflowStatus", "TtGisFixationCancellationStatus", }); + new java.lang.String[] { "IndexKey", "MessageId", "EntityId", "CreationTimestampTicks", "CounteragentBoxId", "DocumentType", "InitialDocumentIds", "SubordinateDocumentIds", "Content", "FileName", "DocumentDate", "DocumentNumber", "NonformalizedDocumentMetadata", "InvoiceMetadata", "TrustConnectionRequestMetadata", "Torg12Metadata", "InvoiceRevisionMetadata", "InvoiceCorrectionMetadata", "InvoiceCorrectionRevisionMetadata", "AcceptanceCertificateMetadata", "ProformaInvoiceMetadata", "XmlTorg12Metadata", "XmlAcceptanceCertificateMetadata", "IsDeleted", "DepartmentId", "IsTest", "FromDepartmentId", "ToDepartmentId", "PriceListMetadata", "CustomDocumentId", "ResolutionStatus", "RevocationStatus", "SendTimestampTicks", "DeliveryTimestampTicks", "ForwardDocumentEvents", "ReconciliationActMetadata", "ContractMetadata", "Torg13Metadata", "ServiceDetailsMetadata", "RoamingNotificationStatus", "HasCustomPrintForm", "CustomData", "PacketId", "DocumentDirection", "LastModificationTimestampTicks", "IsEncryptedContent", "SenderSignatureStatus", "SupplementaryAgreementMetadata", "IsRead", "RoamingNotificationStatusDescription", "PacketIsLocked", "PriceListAgreementMetadata", "CertificateRegistryMetadata", "UniversalTransferDocumentMetadata", "UniversalTransferDocumentRevisionMetadata", "UniversalCorrectionDocumentMetadata", "UniversalCorrectionDocumentRevisionMetadata", "ResolutionRouteId", "AttachmentVersion", "ProxySignatureStatus", "TypeNamedId", "Function", "WorkflowId", "Title", "Metadata", "RecipientReceiptMetadata", "ConfirmationMetadata", "RecipientResponseStatus", "AmendmentRequestMetadata", "Origin", "EditingSettingId", "LockMode", "SenderReceiptMetadata", "Version", "LastOuterDocflows", "ProxyBoxId", "ProxyDepartmentId", "DocflowStatus", "TtGisFixationCancellationStatus", "HasUnreadOutOfWorkflowUniversalMessages", }); internal_static_Diadoc_Api_Proto_Documents_LastOuterDocflow_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Diadoc_Api_Proto_Documents_LastOuterDocflow_fieldAccessorTable = new From ab5e705b63180b2aa8fd123ca87819ba50d670ad Mon Sep 17 00:00:00 2001 From: "d.smirnov" Date: Fri, 3 Apr 2026 13:39:15 +0500 Subject: [PATCH 2/3] review fixes: change default value --- proto/Docflow/DocumentInfoV3.proto | 1 + proto/Documents/Document.proto | 2 +- .../Proto/Docflow/DocumentInfoV3Protos.java | 174 ++++++++++++++---- .../Api/Proto/Documents/DocumentProtos.java | 157 ++++++++-------- 4 files changed, 219 insertions(+), 115 deletions(-) diff --git a/proto/Docflow/DocumentInfoV3.proto b/proto/Docflow/DocumentInfoV3.proto index 3146472e..9d29b8d1 100644 --- a/proto/Docflow/DocumentInfoV3.proto +++ b/proto/Docflow/DocumentInfoV3.proto @@ -33,6 +33,7 @@ message DocumentInfoV3 optional DocumentTemplateInfo TemplateInfo = 17; optional Documents.Origin Origin = 18; optional string EditingSettingId = 19 [default = ""]; + optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; } message DocumentParticipants diff --git a/proto/Documents/Document.proto b/proto/Documents/Document.proto index f02df8ea..27beace7 100644 --- a/proto/Documents/Document.proto +++ b/proto/Documents/Document.proto @@ -102,7 +102,7 @@ message Document { optional string ProxyDepartmentId = 79; required DocflowStatusV3 DocflowStatus = 80; optional TtGisFixationCancellationStatus TtGisFixationCancellationStatus = 81 [default = TtGisFixationCancellationStatusNone]; - optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; } message LastOuterDocflow { diff --git a/src/main/java/Diadoc/Api/Proto/Docflow/DocumentInfoV3Protos.java b/src/main/java/Diadoc/Api/Proto/Docflow/DocumentInfoV3Protos.java index ed6b979a..87bdc538 100644 --- a/src/main/java/Diadoc/Api/Proto/Docflow/DocumentInfoV3Protos.java +++ b/src/main/java/Diadoc/Api/Proto/Docflow/DocumentInfoV3Protos.java @@ -313,6 +313,17 @@ Diadoc.Api.Proto.CustomDataItemProtos.CustomDataItemOrBuilder getCustomDataOrBui */ com.google.protobuf.ByteString getEditingSettingIdBytes(); + + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; + * @return Whether the hasUnreadOutOfWorkflowUniversalMessages field is set. + */ + boolean hasHasUnreadOutOfWorkflowUniversalMessages(); + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; + * @return The hasUnreadOutOfWorkflowUniversalMessages. + */ + boolean getHasUnreadOutOfWorkflowUniversalMessages(); } /** * Protobuf type {@code Diadoc.Api.Proto.Docflow.DocumentInfoV3} @@ -343,6 +354,7 @@ private DocumentInfoV3() { metadata_ = java.util.Collections.emptyList(); customData_ = java.util.Collections.emptyList(); editingSettingId_ = ""; + hasUnreadOutOfWorkflowUniversalMessages_ = true; } public static final com.google.protobuf.Descriptors.Descriptor @@ -908,6 +920,25 @@ public java.lang.String getEditingSettingId() { } } + public static final int HASUNREADOUTOFWORKFLOWUNIVERSALMESSAGES_FIELD_NUMBER = 82; + private boolean hasUnreadOutOfWorkflowUniversalMessages_ = true; + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; + * @return Whether the hasUnreadOutOfWorkflowUniversalMessages field is set. + */ + @java.lang.Override + public boolean hasHasUnreadOutOfWorkflowUniversalMessages() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; + * @return The hasUnreadOutOfWorkflowUniversalMessages. + */ + @java.lang.Override + public boolean getHasUnreadOutOfWorkflowUniversalMessages() { + return hasUnreadOutOfWorkflowUniversalMessages_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1075,6 +1106,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00010000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 19, editingSettingId_); } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeBool(82, hasUnreadOutOfWorkflowUniversalMessages_); + } getUnknownFields().writeTo(output); } @@ -1157,6 +1191,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(19, editingSettingId_); } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(82, hasUnreadOutOfWorkflowUniversalMessages_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1259,6 +1297,11 @@ public boolean equals(final java.lang.Object obj) { if (!getEditingSettingId() .equals(other.getEditingSettingId())) return false; } + if (hasHasUnreadOutOfWorkflowUniversalMessages() != other.hasHasUnreadOutOfWorkflowUniversalMessages()) return false; + if (hasHasUnreadOutOfWorkflowUniversalMessages()) { + if (getHasUnreadOutOfWorkflowUniversalMessages() + != other.getHasUnreadOutOfWorkflowUniversalMessages()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1349,6 +1392,11 @@ public int hashCode() { hash = (37 * hash) + EDITINGSETTINGID_FIELD_NUMBER; hash = (53 * hash) + getEditingSettingId().hashCode(); } + if (hasHasUnreadOutOfWorkflowUniversalMessages()) { + hash = (37 * hash) + HASUNREADOUTOFWORKFLOWUNIVERSALMESSAGES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasUnreadOutOfWorkflowUniversalMessages()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1558,6 +1606,7 @@ public Builder clear() { originBuilder_ = null; } editingSettingId_ = ""; + hasUnreadOutOfWorkflowUniversalMessages_ = true; return this; } @@ -1698,6 +1747,10 @@ private void buildPartial0(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.Documen result.editingSettingId_ = editingSettingId_; to_bitField0_ |= 0x00010000; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.hasUnreadOutOfWorkflowUniversalMessages_ = hasUnreadOutOfWorkflowUniversalMessages_; + to_bitField0_ |= 0x00020000; + } result.bitField0_ |= to_bitField0_; } @@ -1822,6 +1875,9 @@ public Builder mergeFrom(Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.DocumentI bitField0_ |= 0x00040000; onChanged(); } + if (other.hasHasUnreadOutOfWorkflowUniversalMessages()) { + setHasUnreadOutOfWorkflowUniversalMessages(other.getHasUnreadOutOfWorkflowUniversalMessages()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2064,6 +2120,11 @@ public Builder mergeFrom( bitField0_ |= 0x00040000; break; } // case 154 + case 656: { + hasUnreadOutOfWorkflowUniversalMessages_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 656 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -4013,6 +4074,46 @@ public Builder setEditingSettingIdBytes( return this; } + private boolean hasUnreadOutOfWorkflowUniversalMessages_ = true; + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; + * @return Whether the hasUnreadOutOfWorkflowUniversalMessages field is set. + */ + @java.lang.Override + public boolean hasHasUnreadOutOfWorkflowUniversalMessages() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; + * @return The hasUnreadOutOfWorkflowUniversalMessages. + */ + @java.lang.Override + public boolean getHasUnreadOutOfWorkflowUniversalMessages() { + return hasUnreadOutOfWorkflowUniversalMessages_; + } + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; + * @param value The hasUnreadOutOfWorkflowUniversalMessages to set. + * @return This builder for chaining. + */ + public Builder setHasUnreadOutOfWorkflowUniversalMessages(boolean value) { + + hasUnreadOutOfWorkflowUniversalMessages_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; + * @return This builder for chaining. + */ + public Builder clearHasUnreadOutOfWorkflowUniversalMessages() { + bitField0_ = (bitField0_ & ~0x00080000); + hasUnreadOutOfWorkflowUniversalMessages_ = true; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Docflow.DocumentInfoV3) } @@ -13079,7 +13180,7 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo getDefa "s/Document.proto\032\016LockMode.proto\032\032Forwar" + "dDocumentEvent.proto\032\027DocumentDirection." + "proto\032\"Events/DiadocMessage-PostApi.prot" + - "o\032\024CustomDataItem.proto\"\206\007\n\016DocumentInfo" + + "o\032\024CustomDataItem.proto\"\275\007\n\016DocumentInfo" + "V3\0222\n\013FullVersion\030\001 \002(\0132\035.Diadoc.Api.Pro" + "to.FullVersion\022<\n\013MessageType\030\002 \002(\0162\'.Di" + "adoc.Api.Proto.Documents.MessageType\022\022\n\n" + @@ -13102,40 +13203,41 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo getDefa "2..Diadoc.Api.Proto.Docflow.DocumentTemp" + "lateInfo\0222\n\006Origin\030\022 \001(\0132\".Diadoc.Api.Pr" + "oto.Documents.Origin\022\032\n\020EditingSettingId" + - "\030\023 \001(\t:\000\"\351\001\n\024DocumentParticipants\022=\n\006Sen" + - "der\030\001 \002(\0132-.Diadoc.Api.Proto.Docflow.Doc" + - "umentParticipant\022<\n\005Proxy\030\002 \001(\0132-.Diadoc" + - ".Api.Proto.Docflow.DocumentParticipant\022@" + - "\n\tRecipient\030\003 \001(\0132-.Diadoc.Api.Proto.Doc" + - "flow.DocumentParticipant\022\022\n\nIsInternal\030\004" + - " \002(\010\":\n\023DocumentParticipant\022\r\n\005BoxId\030\001 \002" + - "(\t\022\024\n\014DepartmentId\030\002 \001(\t\"w\n\rDocumentLink" + - "s\0220\n\nInitialIds\030\001 \003(\0132\034.Diadoc.Api.Proto" + - ".DocumentId\0224\n\016SubordinateIds\030\002 \003(\0132\034.Di" + - "adoc.Api.Proto.DocumentId\"z\n\nPacketInfo\022" + - ",\n\010LockMode\030\001 \002(\0162\032.Diadoc.Api.Proto.Loc" + - "kMode\022\020\n\010PacketId\030\002 \001(\t\022,\n\007AddedAt\030\003 \001(\013" + - "2\033.Diadoc.Api.Proto.Timestamp\"\200\001\n\022Docume" + - "ntLetterInfo\022\023\n\013IsEncrypted\030\001 \002(\010\022E\n\025For" + - "wardDocumentEvents\030\002 \003(\0132&.Diadoc.Api.Pr" + - "oto.ForwardDocumentEvent\022\016\n\006IsTest\030\003 \002(\010" + - "\"Y\n\021DocumentDraftInfo\022\022\n\nIsRecycled\030\001 \002(" + - "\010\022\020\n\010IsLocked\030\002 \002(\010\022\036\n\026TransformedToLett" + - "erIds\030\003 \003(\t\"\304\002\n\024DocumentTemplateInfo\022J\n\022" + - "LetterParticipants\030\001 \002(\0132..Diadoc.Api.Pr" + - "oto.Docflow.DocumentParticipants\022\036\n\026Tran" + - "sformedToLetterIds\030\002 \003(\t\022Y\n\033TemplateTran" + - "sformationInfos\030\003 \003(\01324.Diadoc.Api.Proto" + - ".Docflow.TemplateTransformationInfo\022J\n\023T" + - "emplateRefusalInfo\030\004 \001(\0132-.Diadoc.Api.Pr" + - "oto.Docflow.TemplateRefusalInfo\022\031\n\nIsReu" + - "sable\030\005 \001(\010:\005false\"\213\001\n\032TemplateTransform" + - "ationInfo\022\030\n\020TransformationId\030\001 \002(\t\022=\n\027T" + - "ransformedToDocumentId\030\002 \001(\0132\034.Diadoc.Ap" + - "i.Proto.DocumentId\022\024\n\014AuthorUserId\030\003 \001(\t" + - "\"K\n\023TemplateRefusalInfo\022\r\n\005BoxId\030\001 \002(\t\022\024" + - "\n\014AuthorUserId\030\002 \001(\t\022\017\n\007Comment\030\003 \001(\tB\026B" + - "\024DocumentInfoV3Protos" + "\030\023 \001(\t:\000\0225\n\'HasUnreadOutOfWorkflowUniver" + + "salMessages\030R \001(\010:\004true\"\351\001\n\024DocumentPart" + + "icipants\022=\n\006Sender\030\001 \002(\0132-.Diadoc.Api.Pr" + + "oto.Docflow.DocumentParticipant\022<\n\005Proxy" + + "\030\002 \001(\0132-.Diadoc.Api.Proto.Docflow.Docume" + + "ntParticipant\022@\n\tRecipient\030\003 \001(\0132-.Diado" + + "c.Api.Proto.Docflow.DocumentParticipant\022" + + "\022\n\nIsInternal\030\004 \002(\010\":\n\023DocumentParticipa" + + "nt\022\r\n\005BoxId\030\001 \002(\t\022\024\n\014DepartmentId\030\002 \001(\t\"" + + "w\n\rDocumentLinks\0220\n\nInitialIds\030\001 \003(\0132\034.D" + + "iadoc.Api.Proto.DocumentId\0224\n\016Subordinat" + + "eIds\030\002 \003(\0132\034.Diadoc.Api.Proto.DocumentId" + + "\"z\n\nPacketInfo\022,\n\010LockMode\030\001 \002(\0162\032.Diado" + + "c.Api.Proto.LockMode\022\020\n\010PacketId\030\002 \001(\t\022," + + "\n\007AddedAt\030\003 \001(\0132\033.Diadoc.Api.Proto.Times" + + "tamp\"\200\001\n\022DocumentLetterInfo\022\023\n\013IsEncrypt" + + "ed\030\001 \002(\010\022E\n\025ForwardDocumentEvents\030\002 \003(\0132" + + "&.Diadoc.Api.Proto.ForwardDocumentEvent\022" + + "\016\n\006IsTest\030\003 \002(\010\"Y\n\021DocumentDraftInfo\022\022\n\n" + + "IsRecycled\030\001 \002(\010\022\020\n\010IsLocked\030\002 \002(\010\022\036\n\026Tr" + + "ansformedToLetterIds\030\003 \003(\t\"\304\002\n\024DocumentT" + + "emplateInfo\022J\n\022LetterParticipants\030\001 \002(\0132" + + "..Diadoc.Api.Proto.Docflow.DocumentParti" + + "cipants\022\036\n\026TransformedToLetterIds\030\002 \003(\t\022" + + "Y\n\033TemplateTransformationInfos\030\003 \003(\01324.D" + + "iadoc.Api.Proto.Docflow.TemplateTransfor" + + "mationInfo\022J\n\023TemplateRefusalInfo\030\004 \001(\0132" + + "-.Diadoc.Api.Proto.Docflow.TemplateRefus" + + "alInfo\022\031\n\nIsReusable\030\005 \001(\010:\005false\"\213\001\n\032Te" + + "mplateTransformationInfo\022\030\n\020Transformati" + + "onId\030\001 \002(\t\022=\n\027TransformedToDocumentId\030\002 " + + "\001(\0132\034.Diadoc.Api.Proto.DocumentId\022\024\n\014Aut" + + "horUserId\030\003 \001(\t\"K\n\023TemplateRefusalInfo\022\r" + + "\n\005BoxId\030\001 \002(\t\022\024\n\014AuthorUserId\030\002 \001(\t\022\017\n\007C" + + "omment\030\003 \001(\tB\026B\024DocumentInfoV3Protos" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -13155,7 +13257,7 @@ public Diadoc.Api.Proto.Docflow.DocumentInfoV3Protos.TemplateRefusalInfo getDefa internal_static_Diadoc_Api_Proto_Docflow_DocumentInfoV3_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Diadoc_Api_Proto_Docflow_DocumentInfoV3_descriptor, - new java.lang.String[] { "FullVersion", "MessageType", "WorkflowId", "Participants", "DocumentDirection", "DepartmentId", "CustomDocumentId", "Metadata", "CustomData", "DocumentLinks", "PacketInfo", "IsRead", "IsDeleted", "IsInvitation", "LetterInfo", "DraftInfo", "TemplateInfo", "Origin", "EditingSettingId", }); + new java.lang.String[] { "FullVersion", "MessageType", "WorkflowId", "Participants", "DocumentDirection", "DepartmentId", "CustomDocumentId", "Metadata", "CustomData", "DocumentLinks", "PacketInfo", "IsRead", "IsDeleted", "IsInvitation", "LetterInfo", "DraftInfo", "TemplateInfo", "Origin", "EditingSettingId", "HasUnreadOutOfWorkflowUniversalMessages", }); internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipants_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Diadoc_Api_Proto_Docflow_DocumentParticipants_fieldAccessorTable = new diff --git a/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtos.java b/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtos.java index 7dc5310b..d63637b2 100644 --- a/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtos.java +++ b/src/main/java/Diadoc/Api/Proto/Documents/DocumentProtos.java @@ -2366,12 +2366,12 @@ Diadoc.Api.Proto.Documents.DocumentProtos.LastOuterDocflowOrBuilder getLastOuter Diadoc.Api.Proto.TtGisFixationCancellationStatusProtos.TtGisFixationCancellationStatus getTtGisFixationCancellationStatus(); /** - * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; * @return Whether the hasUnreadOutOfWorkflowUniversalMessages field is set. */ boolean hasHasUnreadOutOfWorkflowUniversalMessages(); /** - * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; * @return The hasUnreadOutOfWorkflowUniversalMessages. */ boolean getHasUnreadOutOfWorkflowUniversalMessages(); @@ -2435,6 +2435,7 @@ private Document() { proxyBoxId_ = ""; proxyDepartmentId_ = ""; ttGisFixationCancellationStatus_ = 0; + hasUnreadOutOfWorkflowUniversalMessages_ = true; } public static final com.google.protobuf.Descriptors.Descriptor @@ -4955,9 +4956,9 @@ public Diadoc.Api.Proto.DocflowStatusV3Protos.DocflowStatusV3OrBuilder getDocflo } public static final int HASUNREADOUTOFWORKFLOWUNIVERSALMESSAGES_FIELD_NUMBER = 82; - private boolean hasUnreadOutOfWorkflowUniversalMessages_ = false; + private boolean hasUnreadOutOfWorkflowUniversalMessages_ = true; /** - * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; * @return Whether the hasUnreadOutOfWorkflowUniversalMessages field is set. */ @java.lang.Override @@ -4965,7 +4966,7 @@ public boolean hasHasUnreadOutOfWorkflowUniversalMessages() { return ((bitField2_ & 0x00000200) != 0); } /** - * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; * @return The hasUnreadOutOfWorkflowUniversalMessages. */ @java.lang.Override @@ -6908,7 +6909,7 @@ public Builder clear() { docflowStatusBuilder_ = null; } ttGisFixationCancellationStatus_ = 0; - hasUnreadOutOfWorkflowUniversalMessages_ = false; + hasUnreadOutOfWorkflowUniversalMessages_ = true; return this; } @@ -16386,9 +16387,9 @@ public Builder clearTtGisFixationCancellationStatus() { return this; } - private boolean hasUnreadOutOfWorkflowUniversalMessages_ ; + private boolean hasUnreadOutOfWorkflowUniversalMessages_ = true; /** - * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; * @return Whether the hasUnreadOutOfWorkflowUniversalMessages field is set. */ @java.lang.Override @@ -16396,7 +16397,7 @@ public boolean hasHasUnreadOutOfWorkflowUniversalMessages() { return ((bitField2_ & 0x00008000) != 0); } /** - * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; * @return The hasUnreadOutOfWorkflowUniversalMessages. */ @java.lang.Override @@ -16404,7 +16405,7 @@ public boolean getHasUnreadOutOfWorkflowUniversalMessages() { return hasUnreadOutOfWorkflowUniversalMessages_; } /** - * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; * @param value The hasUnreadOutOfWorkflowUniversalMessages to set. * @return This builder for chaining. */ @@ -16416,12 +16417,12 @@ public Builder setHasUnreadOutOfWorkflowUniversalMessages(boolean value) { return this; } /** - * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = false]; + * optional bool HasUnreadOutOfWorkflowUniversalMessages = 82 [default = true]; * @return This builder for chaining. */ public Builder clearHasUnreadOutOfWorkflowUniversalMessages() { bitField2_ = (bitField2_ & ~0x00008000); - hasUnreadOutOfWorkflowUniversalMessages_ = false; + hasUnreadOutOfWorkflowUniversalMessages_ = true; onChanged(); return this; } @@ -21361,7 +21362,7 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.Origin getDefaultInstanceForTyp "mentEvent.proto\032\"Events/DiadocMessage-Po" + "stApi.proto\032 OuterDocflows/OuterDocflow." + "proto\032\025DocflowStatusV3.proto\032%TtGisFixat" + - "ionCancellationStatus.proto\"\331)\n\010Document" + + "ionCancellationStatus.proto\"\330)\n\010Document" + "\022\020\n\010IndexKey\030\001 \001(\t\022\021\n\tMessageId\030\002 \002(\t\022\020\n" + "\010EntityId\030\003 \002(\t\022\036\n\026CreationTimestampTick" + "s\030\004 \002(\020\022\031\n\021CounteragentBoxId\030\005 \001(\t\022I\n\014Do" + @@ -21493,72 +21494,72 @@ public Diadoc.Api.Proto.Documents.DocumentProtos.Origin getDefaultInstanceForTyp ".Proto.DocflowStatusV3\022\177\n\037TtGisFixationC" + "ancellationStatus\030Q \001(\01621.Diadoc.Api.Pro" + "to.TtGisFixationCancellationStatus:#TtGi" + - "sFixationCancellationStatusNone\0226\n\'HasUn" + + "sFixationCancellationStatusNone\0225\n\'HasUn" + "readOutOfWorkflowUniversalMessages\030R \001(\010" + - ":\005false\"r\n\020LastOuterDocflow\022\026\n\016ParentEnt" + - "ityId\030\001 \002(\t\022F\n\014OuterDocflow\030\002 \002(\01320.Diad" + - "oc.Api.Proto.OuterDocflows.OuterDocflowI" + - "nfo\"\310\001\n\020ResolutionStatus\022W\n\004Type\030\001 \001(\01620" + - ".Diadoc.Api.Proto.Documents.ResolutionSt" + - "atusType:\027UnknownResolutionStatus\0222\n\006Tar" + - "get\030\002 \001(\0132\".Diadoc.Api.Proto.ResolutionT" + - "arget\022\024\n\014AuthorUserId\030\003 \002(\t\022\021\n\tAuthorFIO" + - "\030\004 \002(\t\"\320\001\n\030RecipientReceiptMetadata\022d\n\rR" + - "eceiptStatus\030\001 \002(\01620.Diadoc.Api.Proto.Do" + - "cuments.GeneralReceiptStatus:\033GeneralRec" + - "eiptStatusUnknown\022N\n\024ConfirmationMetadat" + - "a\030\002 \001(\01320.Diadoc.Api.Proto.Documents.Con" + - "firmationMetadata\"}\n\025SenderReceiptMetada" + - "ta\022d\n\rReceiptStatus\030\001 \002(\01620.Diadoc.Api.P" + - "roto.Documents.GeneralReceiptStatus:\033Gen" + - "eralReceiptStatusUnknown\"\223\001\n\024Confirmatio" + - "nMetadata\022d\n\rReceiptStatus\030\001 \002(\01620.Diado" + - "c.Api.Proto.Documents.GeneralReceiptStat" + - "us:\033GeneralReceiptStatusUnknown\022\025\n\rDateT" + - "imeTicks\030\002 \002(\020\"\230\001\n\030AmendmentRequestMetad" + - "ata\022\026\n\016AmendmentFlags\030\001 \002(\005\022d\n\rReceiptSt" + - "atus\030\002 \002(\01620.Diadoc.Api.Proto.Documents." + - "GeneralReceiptStatus:\033GeneralReceiptStat" + - "usUnknown\"Y\n\006Origin\022<\n\013MessageType\030\001 \002(\016" + - "2\'.Diadoc.Api.Proto.Documents.MessageTyp" + - "e\022\021\n\tMessageId\030\002 \002(\t*\302\001\n\024ResolutionStatu" + - "sType\022$\n\027UnknownResolutionStatus\020\377\377\377\377\377\377\377" + - "\377\377\001\022\010\n\004None\020\000\022\014\n\010Approved\020\001\022\017\n\013Disapprov" + - "ed\020\002\022\030\n\024ApprovementRequested\020\003\022\026\n\022Signat" + - "ureRequested\020\004\022\023\n\017SignatureDenied\020\005\022\024\n\020A" + - "ctionsRequested\020\006*\262\001\n\020RevocationStatus\022\033" + - "\n\027UnknownRevocationStatus\020\000\022\030\n\024Revocatio" + - "nStatusNone\020\001\022\035\n\031RevocationIsRequestedBy" + - "Me\020\002\022\030\n\024RequestsMyRevocation\020\003\022\026\n\022Revoca" + - "tionAccepted\020\004\022\026\n\022RevocationRejected\020\005*\256" + - "\001\n\031RoamingNotificationStatus\022$\n UnknownR" + - "oamingNotificationStatus\020\000\022!\n\035RoamingNot" + - "ificationStatusNone\020\001\022$\n RoamingNotifica" + - "tionStatusSuccess\020\002\022\"\n\036RoamingNotificati" + - "onStatusError\020\003*\300\001\n\025SenderSignatureStatu" + - "s\022 \n\034UnknownSenderSignatureStatus\020\000\022\035\n\031W" + - "aitingForSenderSignature\020\001\022\034\n\030SenderSign" + - "atureUnchecked\020\002\022\"\n\036SenderSignatureCheck" + - "edAndValid\020\003\022$\n SenderSignatureCheckedAn" + - "dInvalid\020\004*\302\001\n\024ProxySignatureStatus\022\037\n\033U" + - "nknownProxySignatureStatus\020\000\022\034\n\030ProxySig" + - "natureStatusNone\020\001\022\034\n\030WaitingForProxySig" + - "nature\020\002\022\026\n\022WithProxySignature\020\003\022\032\n\026Prox" + - "ySignatureRejected\020\004\022\031\n\025InvalidProxySign" + - "ature\020\005*\234\001\n\024GeneralReceiptStatus\022\037\n\033Gene" + - "ralReceiptStatusUnknown\020\000\022%\n!GeneralRece" + - "iptStatusNotAcceptable\020\001\022\027\n\023HaveToCreate" + - "Receipt\020\002\022\025\n\021WaitingForReceipt\020\003\022\014\n\010Fini" + - "shed\020\004*\220\002\n\027RecipientResponseStatus\022\"\n\036Re" + - "cipientResponseStatusUnknown\020\000\022(\n$Recipi" + - "entResponseStatusNotAcceptable\020\001\022 \n\034Wait" + - "ingForRecipientSignature\020\002\022\032\n\026WithRecipi" + - "entSignature\020\003\022%\n!RecipientSignatureRequ" + - "estRejected\020\004\022\035\n\031InvalidRecipientSignatu" + - "re\020\005\022#\n\037WithRecipientPartiallySignature\020" + - "\006*?\n\013MessageType\022\013\n\007Unknown\020\000\022\n\n\006Letter\020" + - "\001\022\t\n\005Draft\020\002\022\014\n\010Template\020\003B\020B\016DocumentPr" + - "otos" + ":\004true\"r\n\020LastOuterDocflow\022\026\n\016ParentEnti" + + "tyId\030\001 \002(\t\022F\n\014OuterDocflow\030\002 \002(\01320.Diado" + + "c.Api.Proto.OuterDocflows.OuterDocflowIn" + + "fo\"\310\001\n\020ResolutionStatus\022W\n\004Type\030\001 \001(\01620." + + "Diadoc.Api.Proto.Documents.ResolutionSta" + + "tusType:\027UnknownResolutionStatus\0222\n\006Targ" + + "et\030\002 \001(\0132\".Diadoc.Api.Proto.ResolutionTa" + + "rget\022\024\n\014AuthorUserId\030\003 \002(\t\022\021\n\tAuthorFIO\030" + + "\004 \002(\t\"\320\001\n\030RecipientReceiptMetadata\022d\n\rRe" + + "ceiptStatus\030\001 \002(\01620.Diadoc.Api.Proto.Doc" + + "uments.GeneralReceiptStatus:\033GeneralRece" + + "iptStatusUnknown\022N\n\024ConfirmationMetadata" + + "\030\002 \001(\01320.Diadoc.Api.Proto.Documents.Conf" + + "irmationMetadata\"}\n\025SenderReceiptMetadat" + + "a\022d\n\rReceiptStatus\030\001 \002(\01620.Diadoc.Api.Pr" + + "oto.Documents.GeneralReceiptStatus:\033Gene" + + "ralReceiptStatusUnknown\"\223\001\n\024Confirmation" + + "Metadata\022d\n\rReceiptStatus\030\001 \002(\01620.Diadoc" + + ".Api.Proto.Documents.GeneralReceiptStatu" + + "s:\033GeneralReceiptStatusUnknown\022\025\n\rDateTi" + + "meTicks\030\002 \002(\020\"\230\001\n\030AmendmentRequestMetada" + + "ta\022\026\n\016AmendmentFlags\030\001 \002(\005\022d\n\rReceiptSta" + + "tus\030\002 \002(\01620.Diadoc.Api.Proto.Documents.G" + + "eneralReceiptStatus:\033GeneralReceiptStatu" + + "sUnknown\"Y\n\006Origin\022<\n\013MessageType\030\001 \002(\0162" + + "\'.Diadoc.Api.Proto.Documents.MessageType" + + "\022\021\n\tMessageId\030\002 \002(\t*\302\001\n\024ResolutionStatus" + + "Type\022$\n\027UnknownResolutionStatus\020\377\377\377\377\377\377\377\377" + + "\377\001\022\010\n\004None\020\000\022\014\n\010Approved\020\001\022\017\n\013Disapprove" + + "d\020\002\022\030\n\024ApprovementRequested\020\003\022\026\n\022Signatu" + + "reRequested\020\004\022\023\n\017SignatureDenied\020\005\022\024\n\020Ac" + + "tionsRequested\020\006*\262\001\n\020RevocationStatus\022\033\n" + + "\027UnknownRevocationStatus\020\000\022\030\n\024Revocation" + + "StatusNone\020\001\022\035\n\031RevocationIsRequestedByM" + + "e\020\002\022\030\n\024RequestsMyRevocation\020\003\022\026\n\022Revocat" + + "ionAccepted\020\004\022\026\n\022RevocationRejected\020\005*\256\001" + + "\n\031RoamingNotificationStatus\022$\n UnknownRo" + + "amingNotificationStatus\020\000\022!\n\035RoamingNoti" + + "ficationStatusNone\020\001\022$\n RoamingNotificat" + + "ionStatusSuccess\020\002\022\"\n\036RoamingNotificatio" + + "nStatusError\020\003*\300\001\n\025SenderSignatureStatus" + + "\022 \n\034UnknownSenderSignatureStatus\020\000\022\035\n\031Wa" + + "itingForSenderSignature\020\001\022\034\n\030SenderSigna" + + "tureUnchecked\020\002\022\"\n\036SenderSignatureChecke" + + "dAndValid\020\003\022$\n SenderSignatureCheckedAnd" + + "Invalid\020\004*\302\001\n\024ProxySignatureStatus\022\037\n\033Un" + + "knownProxySignatureStatus\020\000\022\034\n\030ProxySign" + + "atureStatusNone\020\001\022\034\n\030WaitingForProxySign" + + "ature\020\002\022\026\n\022WithProxySignature\020\003\022\032\n\026Proxy" + + "SignatureRejected\020\004\022\031\n\025InvalidProxySigna" + + "ture\020\005*\234\001\n\024GeneralReceiptStatus\022\037\n\033Gener" + + "alReceiptStatusUnknown\020\000\022%\n!GeneralRecei" + + "ptStatusNotAcceptable\020\001\022\027\n\023HaveToCreateR" + + "eceipt\020\002\022\025\n\021WaitingForReceipt\020\003\022\014\n\010Finis" + + "hed\020\004*\220\002\n\027RecipientResponseStatus\022\"\n\036Rec" + + "ipientResponseStatusUnknown\020\000\022(\n$Recipie" + + "ntResponseStatusNotAcceptable\020\001\022 \n\034Waiti" + + "ngForRecipientSignature\020\002\022\032\n\026WithRecipie" + + "ntSignature\020\003\022%\n!RecipientSignatureReque" + + "stRejected\020\004\022\035\n\031InvalidRecipientSignatur" + + "e\020\005\022#\n\037WithRecipientPartiallySignature\020\006" + + "*?\n\013MessageType\022\013\n\007Unknown\020\000\022\n\n\006Letter\020\001" + + "\022\t\n\005Draft\020\002\022\014\n\010Template\020\003B\020B\016DocumentPro" + + "tos" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, From adc17ed966e0cb7336aa47b975d142d9e087e24c Mon Sep 17 00:00:00 2001 From: "d.smirnov" Date: Thu, 16 Apr 2026 17:13:28 +0500 Subject: [PATCH 3/3] feat: increase version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5c24db1b..482c5da1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 ru.kontur.diadoc diadocsdk - 5.9.0 + 5.10.0 jar